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 Integer, _
   ByVal NTopologies As Integer, _
   ByVal Topologies As Object, _
   ByVal EdgeToleranceArray As Object, _
   ByVal VertexToleranceArray As Object, _
   ByVal PointArray As Object, _
   ByVal CurveArray1 As Object, _
   ByVal CurveSurfaceArray1 As Object, _
   ByVal CurveArray2 As Object, _
   ByVal CurveSurfaceArray2 As Object, _
   ByVal SurfaceArray As Object, _
   ByVal NRelations As Integer, _
   ByVal Parents As Object, _
   ByVal Children As Object, _
   ByVal Senses As Object, _
   ByVal Option As Integer _
) As Object
Visual Basic (Usage) 
Dim instance As IModeler
Dim Type As Integer
Dim NTopologies As Integer
Dim Topologies As Object
Dim EdgeToleranceArray As Object
Dim VertexToleranceArray As Object
Dim PointArray As Object
Dim CurveArray1 As Object
Dim CurveSurfaceArray1 As Object
Dim CurveArray2 As Object
Dim CurveSurfaceArray2 As Object
Dim SurfaceArray As Object
Dim NRelations As Integer
Dim Parents As Object
Dim Children As Object
Dim Senses As Object
Dim Option As Integer
Dim value As Object
 
value = instance.CreateBrepBody3(Type, NTopologies, Topologies, EdgeToleranceArray, VertexToleranceArray, PointArray, CurveArray1, CurveSurfaceArray1, CurveArray2, CurveSurfaceArray2, SurfaceArray, NRelations, Parents, Children, Senses, Option)
C# 
object CreateBrepBody3( 
   int Type,
   int NTopologies,
   object Topologies,
   object EdgeToleranceArray,
   object VertexToleranceArray,
   object PointArray,
   object CurveArray1,
   object CurveSurfaceArray1,
   object CurveArray2,
   object CurveSurfaceArray2,
   object SurfaceArray,
   int NRelations,
   object Parents,
   object Children,
   object Senses,
   int Option
)
C++/CLI 
Object^ CreateBrepBody3( 
&   int Type,
&   int NTopologies,
&   Object^ Topologies,
&   Object^ EdgeToleranceArray,
&   Object^ VertexToleranceArray,
&   Object^ PointArray,
&   Object^ CurveArray1,
&   Object^ CurveSurfaceArray1,
&   Object^ CurveArray2,
&   Object^ CurveSurfaceArray2,
&   Object^ SurfaceArray,
&   int NRelations,
&   Object^ Parents,
&   Object^ Children,
&   Object^ Senses,
&   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) 2012 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.