Skip to main content

ZOS-API interface 2025 R1

ZOSAPI.Tools.IShadedModelTriangleList Interface Reference

Last update: 17.07.2025

Public 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
TriangleNumberThe triangle index to retrieve (0 to NumberOfTriangles-1).
VertexThe index for the Vertex of the triangle. Valid values 0-2
XThe X coordinates for the specified triangle Vertex.
YThe Y coordinates for the specified triangle Vertex.
ZThe Z coordinates for the specified triangle Vertex.
XNormalThe Normal for the X coordinates for the specified triangle Vertex.
YNormalThe Normal for the Y coordinates for the specified triangle Vertex.
ZNormalThe Normal for the Z coordinates for the specified triangle Vertex.
Surface
Object
Returns
true if the triangleNumber was valid, false otherwise.

◆ NumberOfObjects()

int[] ZOSAPI.Tools.IShadedModelTriangleList.NumberOfObjects ( int  Surface)

Property Documentation

◆ NumberOfSurfaces

int ZOSAPI.Tools.IShadedModelTriangleList.NumberOfSurfaces
get

◆ NumberOfTriangles

int ZOSAPI.Tools.IShadedModelTriangleList.NumberOfTriangles
get

The number of Triangles available.

◆ ObjectIndex

IVectorData ZOSAPI.Tools.IShadedModelTriangleList.ObjectIndex
getset

◆ SurfaceIndex

IVectorData ZOSAPI.Tools.IShadedModelTriangleList.SurfaceIndex
getset

◆ TotalNumberOfObjects

int ZOSAPI.Tools.IShadedModelTriangleList.TotalNumberOfObjects
get

◆ XCoords

IVectorData ZOSAPI.Tools.IShadedModelTriangleList.XCoords
getset

The X coordinates for all vertices of all triangles.

◆ XNormals

IVectorData ZOSAPI.Tools.IShadedModelTriangleList.XNormals
getset

◆ YCoords

IVectorData ZOSAPI.Tools.IShadedModelTriangleList.YCoords
getset

The Y coordinates for all vertices of all triangles.

◆ YNormals

IVectorData ZOSAPI.Tools.IShadedModelTriangleList.YNormals
getset

◆ ZCoords

IVectorData ZOSAPI.Tools.IShadedModelTriangleList.ZCoords
getset

The Z coordinates for all vertices of all triangles.

◆ ZNormals

IVectorData ZOSAPI.Tools.IShadedModelTriangleList.ZNormals
getset

Connect with Ansys