CSCSFace Object

The CSCSFace object represents a CSFace of a 3DCrafter shape.

Each CSFace is made up of a 3 or more Point/Normal/Texture Coordinate combinations.

 

GetCSFaceNormal

Gets the CSFace's normal.

Syntax

shape.GetCSFaceNormal(X As Variant,
Y As Variant,
Z
As Variant)

GetPointCount

Gets the number points in the CSFace.

Syntax

shape.GetPointCount() As Variant

GetPointID

Gets the specified point.

Syntax

shape.GetPointID(Index As Variant) As Variant

Remarks

The returned value is an index to a point in a CSShape shape.

GetNormalCount

Gets the number of normals in the CSFace.

Syntax

shape.GetNormalCount() As Variant

GetNormalID

Gets the specified point normal.

Syntax

shape.GetNormalID(Index As Variant) As Variant

Remarks

The returned value is an index to a normal in a CSShape shape.

Note that this is the normal for a point which is used for smoothing/creasing rather than the CSFace's normal. To get the CSFace's normal use the GetCSFaceNormal method.

GetTextureCoordinateCount

Gets the number of texture coordinates in the CSFace.

Syntax

shape.GetTextureCoordinateCount() As Variant

GetTextureCoordinateID

Gets the specified texture coordinate.

Syntax

shape.GetTextureCoordinateID(Index As Variant) As Variant

Remarks

The returned value is an index to a texture coordinate in a CSShape shape.

AddPointID

Adds a point, normal and texture coordinate to the CSFace.

Syntax

shape.AddPointID(PointIndex As Variant,
NormalIndex As Variant,
UVIndex as Variant)

SetMaterial

Sets the material for the CSFace.

Syntax

shape.SetMaterial(Material As Variant)

GetMaterial

Gets the material of the CSFace.

Syntax

shape.GetMaterial() As CSMaterial