TriangleOriginInfo

From Solid Graphics Wiki

Jump to: navigation, search

The TriangleOriginInfo is an object used to describe origin of triangles in result of CSG operations. Operations such as CSGOperation::AMinusB can fill up this object with indicators which will contain triangle origin information for each triangle in the result Shape.

The TriangleOriginInfo is defined as list of STriangleOriginInfo structures. The STriangleOriginInfo structure has two fields:

ownerId
value 0 indicates that the result triangle came from shape A of the CSG operation. Value 1 indicates that the result triangle came from shape B of the CSG operation.
triangleId
contains index of triangle in the original shape (A or B) from which the result triangle was created from.

See Also

Personal tools