Solid Edge Geometry Type Library
GetFacetData Method
Chordal tolerance between a curve and its facet edges, i.e. upper bound on distance from chord to the curve it approximates. This distance is in Meters.
Returns the number of facets for the referenced object.
Returns the number of points for the associated facet on the referenced object.
Returns a safe array that contains the facets' normals.
Returns a safe array that contains the facets' u,v coordinates.
Description
Returns the number of facets and the number of points on the facets for the referenced object. If Tolerance <= 0, then data is returned from the geometry cache, and not from Parasolid.
Syntax
Visual Basic
Public Sub GetFacetData( _
   ByVal Tolerance As Double, _
   ByRef FacetCount As Long, _
   ByRef Points() As Double, _
   Optional ByRef Normals As Variant, _
   Optional ByRef TextureCoords As Variant _
) 
Parameters
Tolerance
Chordal tolerance between a curve and its facet edges, i.e. upper bound on distance from chord to the curve it approximates. This distance is in Meters.
FacetCount
Returns the number of facets for the referenced object.
Points
Returns the number of points for the associated facet on the referenced object.
Normals
Returns a safe array that contains the facets' normals.
TextureCoords
Returns a safe array that contains the facets' u,v coordinates.
Example
Private Sub Form_Load()
    Dim objApp As solidedgeframework.Application
    Dim objDoc As SolidEdgepart.PartDocument
    Dim objBody As solidedgegeometry.Body
    Dim objFace As solidedgegeometry.Face
    Dim lngFctCnt As Long
    Dim dblPnts() As Double
    Const TESTFILE = "T:\vbtests\testcases\FreeForm.par"
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.PartDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    Call objDoc.Close
    ' opening the testfile
    Set objDoc = objApp.Documents.Open(TESTFILE)
    ' getting the body object of the model
    Set objBody = objDoc.Models(1).Body
    ' getting a particular face from the collection of faces on the body
    Set objFace = objBody.Faces(FaceType:=igQueryAll).Item(1)
    ' getting the facetdata for a Face
    Call objFace.GetFacetData(TOLERANCE:=0.01, FacetCount:=lngFctCnt, Points:=dblPnts)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objBody = Nothing
    Set objFace = Nothing
End Sub
See Also

Face Object  | Face Members