Hide Table of Contents
GetBodyOutline2 Method (IModeler)

Gets the curves that form the outline of a body.

.NET Syntax

Visual Basic (Declaration) 
Function GetBodyOutline2( _
   ByVal BodyList As Object, _
   ByVal Direction As MathVector, _
   ByVal Tolerance As Double, _
   ByVal ProjectOnPlane As Boolean, _
   ByRef Curves As Object, _
   ByRef TopolEntities As Object, _
   ByRef Outline As Object _
) As Integer
Visual Basic (Usage) 
Dim instance As IModeler
Dim BodyList As Object
Dim Direction As MathVector
Dim Tolerance As Double
Dim ProjectOnPlane As Boolean
Dim Curves As Object
Dim TopolEntities As Object
Dim Outline As Object
Dim value As Integer
 
value = instance.GetBodyOutline2(BodyList, Direction, Tolerance, ProjectOnPlane, Curves, TopolEntities, Outline)
C# 
int GetBodyOutline2( 
   object BodyList,
   MathVector Direction,
   double Tolerance,
   bool ProjectOnPlane,
   out object Curves,
   out object TopolEntities,
   out object Outline
)
C++/CLI 
int GetBodyOutline2( 
&   Object^ BodyList,
&   MathVector^ Direction,
&   double Tolerance,
&   bool ProjectOnPlane,
&   [Out] Object^ Curves,
&   [Out] Object^ TopolEntities,
&   [Out] Object^ Outline
) 

Parameters

BodyList
Array of bodies
Direction

IMathVector direction of view

Tolerance

Tolerance (Parasolid default 0.00001)

ProjectOnPlane
True to project the curves onto a plane, false to not (see Remarks)
Curves

Array of 3D trimmed curves that form the outline

TopolEntities
Array of topological entities associated with the outline
Outline
Array of integers indicating which curves belong to which outline

Return Value

Number of curves that form the outline

Example

Remarks

When rendered, the array of curves returned in Curves might not display as a continuous outline of the body. 

To close gaps:

  1. Call this method with ProjectOnPlane = true.
  2. Post-process the array of curves returned in Curves to interpolate the end points of each curve to generate a continuous outline of the body. See the examples.
 

See Also

Availability

SolidWorks 2012 FCS, Revision Number 20.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:   GetBodyOutline2 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.