Hide Table of Contents
CreateBrepBody3 Method (IModeler)

Creates a temporary body from BREP (boundary representation) data.

.NET Syntax

Visual Basic (Declaration) 
Function CreateBrepBody3( _
   ByVal Type As System.Integer, _
   ByVal NTopologies As System.Integer, _
   ByVal Topologies As System.Object, _
   ByVal EdgeToleranceArray As System.Object, _
   ByVal VertexToleranceArray As System.Object, _
   ByVal PointArray As System.Object, _
   ByVal CurveArray1 As System.Object, _
   ByVal CurveSurfaceArray1 As System.Object, _
   ByVal CurveArray2 As System.Object, _
   ByVal CurveSurfaceArray2 As System.Object, _
   ByVal SurfaceArray As System.Object, _
   ByVal NRelations As System.Integer, _
   ByVal Parents As System.Object, _
   ByVal Children As System.Object, _
   ByVal Senses As System.Object, _
   ByVal Option As System.Integer _
) As System.Object
Visual Basic (Usage) 
Dim instance As IModeler
Dim Type As System.Integer
Dim NTopologies As System.Integer
Dim Topologies As System.Object
Dim EdgeToleranceArray As System.Object
Dim VertexToleranceArray As System.Object
Dim PointArray As System.Object
Dim CurveArray1 As System.Object
Dim CurveSurfaceArray1 As System.Object
Dim CurveArray2 As System.Object
Dim CurveSurfaceArray2 As System.Object
Dim SurfaceArray As System.Object
Dim NRelations As System.Integer
Dim Parents As System.Object
Dim Children As System.Object
Dim Senses As System.Object
Dim Option As System.Integer
Dim value As System.Object
 
value = instance.CreateBrepBody3(Type, NTopologies, Topologies, EdgeToleranceArray, VertexToleranceArray, PointArray, CurveArray1, CurveSurfaceArray1, CurveArray2, CurveSurfaceArray2, SurfaceArray, NRelations, Parents, Children, Senses, Option)
C# 
System.object CreateBrepBody3( 
   System.int Type,
   System.int NTopologies,
   System.object Topologies,
   System.object EdgeToleranceArray,
   System.object VertexToleranceArray,
   System.object PointArray,
   System.object CurveArray1,
   System.object CurveSurfaceArray1,
   System.object CurveArray2,
   System.object CurveSurfaceArray2,
   System.object SurfaceArray,
   System.int NRelations,
   System.object Parents,
   System.object Children,
   System.object Senses,
   System.int Option
)
C++/CLI 
System.Object^ CreateBrepBody3( 
&   System.int Type,
&   System.int NTopologies,
&   System.Object^ Topologies,
&   System.Object^ EdgeToleranceArray,
&   System.Object^ VertexToleranceArray,
&   System.Object^ PointArray,
&   System.Object^ CurveArray1,
&   System.Object^ CurveSurfaceArray1,
&   System.Object^ CurveArray2,
&   System.Object^ CurveSurfaceArray2,
&   System.Object^ SurfaceArray,
&   System.int NRelations,
&   System.Object^ Parents,
&   System.Object^ Children,
&   System.Object^ Senses,
&   System.int Option
) 

Parameters

Type
Type of body to create as defined in swTopology_e
NTopologies
Number of topological entities in the topologies argument
Topologies
Array of topologies (see swTopoEntity_e), one for each topological entity
EdgeToleranceArray
Array of tolerances for edges
VertexToleranceArray
Array of tolerances for vertices
PointArray
Array of coordinates of vertices (geometry for vertices)
CurveArray1
Array of curves (geometry for edges; 3D curve) and coedges (geometry for coedges; 2D curve)
CurveSurfaceArray1
Array of surfaces that lie on CurveArray1 2D curve
CurveArray2
Array of curves (geometry for edges; 3D curve) and array of coedges (geometry for coedges; 2D curve)
CurveSurfaceArray2
Array of surfaces that on lie on CurveArray2 2D curve
SurfaceArray
Array of surfaces (geometry for faces)
NRelations
Number of 1-to-1 relationships between topological entities
Parents
Array of parents, one in each relationship
Children
Array of parents, one in each relationship
Senses
Array of senses in which child is used by parent in the relationship
Option
  • 0 = Default
  • 1 = Repair and simplify body

  • 2 = Simplify body

  • Return Value

    Body

    Remarks

    The CurveArray1 and CurveArray2 must be paired with CurveSurfaceArray1 and CurveSurfaceArray2, respectively. Order is not important. The 2D curve has to be created in the direction of the loop.

    If non-negative values are packed into the EdgeToleranceArray and VertexToleranceArray arrays, then tolerances are applied to the corresponding edges or vertices. These arrays should be the same size as CurveArray1 and PointArray, respectively. Otherwise, a default value of 1.0e-8 (modeler precision) is used.

    NOTE: IModeler::SetInitKnitGapWidth does not affect this method.

    Useful methods for creating geometry for the topological entities are:

    For example, to create a cone, find topological relationships and form relevant arrays. A complete solid cone consists of 8 topological entities:

      • 1 shell

      • 2 faces

      • 3 loops

      • 1 edge

      • 1 vertex

    There are 8 relations:

      • the shell is the parent of 2 faces - 2

      • the planar end face has 1 loop - 1

      • the conical face has 2 loops - 2

      • two loops are each the parent of 1 edge - 2

      • one loop is the parent of 1 vertex 1

    The topologies array:

     

    Index

    Value

    0

    swTopoShell

    1

    swTopoFace

    2

    swTopoFace

    3

    swTopoLoop

    4

    swTopoEdge

    5

    swTopoLoop

    6

    swTopoLoop

    7

    swTopoVertex

     

    The set of arrays:

     

    index

    parents

    children

    senses

    relation

    0

    0

    1

    0

    shell to face

    1

    0

    2

    0

    shell to face

    2

    1

    3

    0

    face to loop

    3

    3

    4

    -1

    loop to edge

    4

    2

    5

    0

    face to loop

    5

    2

    6

    0

    face to loop

    6

    5

    4

    1

    loop to edge

    7

    6

    7

    0

    loop to vertex

     

    Values in the parents and children arrays correspond to the indices of the topology array.

    Each face or edge created by IModeler::CreateBrepBody3 or IModeler::ICreateBrepBody3 has an associated integer ID that is the same as the index to the input topologies. Use IFace2::GetFaceId or IEdge::GetId to get the associated integer ID.

    Every shell should be a closed shell. Sheet bodies should have additional back faces to form a closed shell. When creating a sheet body, these extra back faces are retained in the result and should be removed using IModeler::DeleteFacesFromSheetBody or IModeler::IDeleteFacesFromSheetBody.

     

    See Also

    Availability

    SOLIDWORKS 2004 FCS, Revision Number 12.0


    Provide feedback on this topic

    SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

    * Required

     
    *Email:  
    Subject:   Feedback on Help Topics
    Page:   CreateBrepBody3 Method (IModeler)
    *Comment:  
    *   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

    Print Topic

    Select the scope of content to print:



    x

    We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

     Never show this message again
    x

    Web Help Content Version: API Help (English only) 2017 SP05

    To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

    To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.