CanvasFace Object

The CanvasFace object represents a face of a 3D Canvas Object.

Points and Normals AddPointAndNormal
  GetPointCount
  GetPoint
  GetNormalCount
  GetNormal
Materials GetMaterial
  SetMaterial
Textures GetTextureTopology
  SetTextureTopology

 

GetPointCount

Gets the number points in the face.

Syntax

object.GetPointCount() As Variant

GetPoint

Gets the specified point.

Syntax

object.GetPoint(Index As Variant) As Variant

Remarks

The returned value is an index to a point in a CanvasObject object.

GetNormalCount

Gets the number of normals in the face.

Syntax

object.GetNormalCount() As Variant

GetNormal

Gets the specified normal.

Syntax

object.GetNormal(Index As Variant) As Variant

Remarks

The returned value is an index to a normal in a CanvasObject object.

GetTextureTopology

Gets the texture topology of the face.

Syntax

object.GetTextureTopology(WrapU As Variant,
WrapV As Variant)

SetTextureTopology

Sets the texture topology of the face.

Syntax

object.SetTextureTopology(WrapU As Variant,
WrapV As Variant)

Remarks

Flat wraps require 0, 0 as arguments.
Cylindrical wraps require 1, 0 as arguments.
Spherical wraps require 1, 1 as arguments.

AddPointAndNormal

Adds a point and normal to the face.

Syntax

object.AddPointAndNormal(PointIndex As Variant,
NormalIndex As Variant)

SetMaterial

Sets the material for the face.

Syntax

object.SetMaterial(Material As Variant)

GetMaterial

Gets the material of the face.

Syntax

object.GetMaterial() As CanvasMaterial