ZOSAPI.Tools.IShadedModelTriangleList Interface Reference
Last update: 17.07.2025Public Member Functions | |
| int[] | NumberOfObjects (int Surface) |
| bool | GetVertex (int TriangleNumber, VertexOrder Vertex, out double X, out double Y, out double Z, out double XNormal, out double YNormal, out double ZNormal, out int Surface, out int Object) |
| Retrieve the X, Y, and Z position for the Vertex of the specified triangle. | |
Properties | |
| int | NumberOfTriangles [get] |
| The number of Triangles available. | |
| int | NumberOfSurfaces [get] |
| int | TotalNumberOfObjects [get] |
| IVectorData | XCoords [get, set] |
| The X coordinates for all vertices of all triangles. | |
| IVectorData | YCoords [get, set] |
| The Y coordinates for all vertices of all triangles. | |
| IVectorData | ZCoords [get, set] |
| The Z coordinates for all vertices of all triangles. | |
| IVectorData | XNormals [get, set] |
| IVectorData | YNormals [get, set] |
| IVectorData | ZNormals [get, set] |
| IVectorData | SurfaceIndex [get, set] |
| IVectorData | ObjectIndex [get, set] |
Member Function Documentation
◆ GetVertex()
| bool ZOSAPI.Tools.IShadedModelTriangleList.GetVertex | ( | int | TriangleNumber, |
| VertexOrder | Vertex, | ||
| out double | X, | ||
| out double | Y, | ||
| out double | Z, | ||
| out double | XNormal, | ||
| out double | YNormal, | ||
| out double | ZNormal, | ||
| out int | Surface, | ||
| out int | Object | ||
| ) |
Retrieve the X, Y, and Z position for the Vertex of the specified triangle.
- Parameters
-
TriangleNumber The triangle index to retrieve (0 to NumberOfTriangles-1). Vertex The index for the Vertex of the triangle. Valid values 0-2 X The X coordinates for the specified triangle Vertex. Y The Y coordinates for the specified triangle Vertex. Z The Z coordinates for the specified triangle Vertex. XNormal The Normal for the X coordinates for the specified triangle Vertex. YNormal The Normal for the Y coordinates for the specified triangle Vertex. ZNormal The Normal for the Z coordinates for the specified triangle Vertex. Surface Object
- Returns
trueif the triangleNumber was valid,falseotherwise.
◆ NumberOfObjects()
| int[] ZOSAPI.Tools.IShadedModelTriangleList.NumberOfObjects | ( | int | Surface | ) |
Property Documentation
◆ NumberOfSurfaces
|
get |
◆ NumberOfTriangles
|
get |
The number of Triangles available.
◆ ObjectIndex
|
getset |
◆ SurfaceIndex
|
getset |
◆ TotalNumberOfObjects
|
get |
◆ XCoords
|
getset |
The X coordinates for all vertices of all triangles.
◆ XNormals
|
getset |
◆ YCoords
|
getset |
The Y coordinates for all vertices of all triangles.
◆ YNormals
|
getset |
◆ ZCoords
|
getset |
The Z coordinates for all vertices of all triangles.
◆ ZNormals
|
getset |