Navigation: Scripting Reference Manual > Functions & Subroutines > FacetedSurfaceGetFacetCount

 

FacetedSurfaceGetFacetCount

 

Contact Us: fredsupport@photonengr.com

 

Description

This function retrieves the number of facets defined in a Faceted Surface object.

 

Syntax

nFacets = FacetedSurfaceGetFacetCount( surf )

 

Parameters

nFacets (Long)

Returned number of facets defined in the faceted surface.

 

surf As Long

Node number of the faceted surface being queried.

 

Example

The example below demonstrates how to query a faceted surface for its facet count and report the information to the output window.

 

Sub Main

          

    Dim fsurf As Long

    fsurf = FindFullName( "Geometry.Pipe Data Object.Front" )

 

    Dim nFacets As Long

    nFacets = FacetedSurfGetFacetCount( fsurf )

 

    Print "Surface " & GetFullName( fsurf ) & " has " & nFacets & " facets."

 

End Sub

 

See Also

FacetedSurfaceCreateFromFile

FacetedSurfExportToObjFile

FacetedSurfGetUseVertexNormals

FacetedSurfGetHasVertexNormals

FacetedSurfSetFromFile

FacetedSurfSetUseVertexNormals

 

 

 

 

 

 

Copyright © Photon Engineering, LLC