> GetTessTriStrips Method (IComponent2)
Welcome
Getting Started
SolidWorks API Help
FeatureWorks API Help
SolidWorks Document Manager API Help
eDrawings API Help
SolidWorks Routing API Help
SolidWorks Simulation API Help
SolidWorks Utilities API Help
SolidWorks Workgroup PDM API Help
Hide Table of Contents Show Table of Contents
GetTessTriStrips Method (IComponent2)

Gets the vertices that make up the shaded picture tessellation for this component.

.NET Syntax

Visual Basic (Declaration) 
Function GetTessTriStrips( _
   ByVal NoConversion As Boolean _
) As Object
Visual Basic (Usage) 
Dim instance As IComponent2
Dim NoConversion As Boolean
Dim value As Object
 
value = instance.GetTessTriStrips(NoConversion)
C# 
object GetTessTriStrips( 
   bool NoConversion
)
C++/CLI 
Object^ GetTessTriStrips( 
&   bool NoConversion
) 

Parameters

NoConversion
True prohibits conversion to user units from system units, false does not

Return Value

Array (see Remarks)

Remarks

Tessellation information is available only when the component is loaded as lightweight.

These triangles are intended for graphical display purposes and do not represent a tessellation that could be used, for example, by a machining application. If you need the type of accuracy associated with a machining product, you should traverse the body faces and extract the topology and geometry data to create your own faceting.

where:

  •  FaceCount  = number of faces on the body
  •  StripCount  = total number of strips on the body
  •  VertexCount x 3 = total number of vertices. Multiplied by three to cover X,Y, and Z
  •  NumStrips = number of strips on a particular face
  •  VertexPerStrip = an array containing the number of vertex points on particular face strip
  •  VertexPoints = an array of X,Y,Z points for each vertex on the particular face strip

Because the returned array elements are of type float, and FaceCount, StripCount, VertexCount, NumStrips, and the elements of VertexPerStrip are integers that have been packed into the return array elements, and you must unpack them before you can use them.

For example:

  • sa[0] = number of faces
  • sa[1] = total number of strips
  • sa[2] = total number of vertices x 3 (i.e., - data values)

 

For each face:

  • sa[3] = number of strips in this face
  • sa[4] = number of vertices in first strip of this face
  • sa[5] = number of vertices in second strip of this face

...

  • sa[3 + sa[3]] = number of vertices in last strip of this face

 

For each strip, i:

  • sa[3 + sa[3] + 1] = X value of first vertex in this strip of the face
  • sa[3 + sa[3] + 2] = Y value of first vertex in this strip of the face
  • sa[3 + sa[3] + 3] = Z value of first vertex in this strip of the face
  • sa[3 + sa[3] + 4] = X value of second vertex in this strip of the face

...

  • sa[3 + sa[3] + (sa[3+i] x 3)] = Z value of last vertex in this strip of the face
 

See Also

Availability

SolidWorks 2001Plus FCS, Revision Number 10.0


Related SolidWorks Forum Content

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:   GetTessTriStrips Method (IComponent2)
*Comment:  
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

The search functionality within the web help is in a beta test phase and you may experience periodic delays or interruptions in its performance. These are the normal and ordinary features of a beta test and shall not under any circumstances give rise to any liability on the part of DS SolidWorks or its licensors. The topics within the Web-based help are not beta topics; they document 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.