Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Modeling.MeshVertexInfo

Summary

Describes a vertex in a mesh passed to Md.CreateMesh(bool, bool, MeshVertexInfo[][]).

Constructors

MeshVertexInfo(Pt pt, Normal befX, Normal afX, Normal befY, Normal afY, PointD? texture = null, PointD? textureAfter = null)
Constructor.
MeshVertexInfo(Pt pt, Pt normalOverride, PointD? texture = null, PointD? textureAfter = null)

Instance methods

MeshVertexInfo
Rotate(Pt axisStart, Pt axisEnd, double angle)
Rotates this vertex counter-clockwise about the specified axis by the specified angle in degrees.
MeshVertexInfo
RotateX(double angle)
Rotates this vertex counter-clockwise about the x-axis by the specified angle in degrees.
MeshVertexInfo
RotateY(double angle)
Rotates this vertex counter-clockwise about the y-axis by the specified angle in degrees.
MeshVertexInfo
RotateZ(double angle)
Rotates this vertex counter-clockwise about the z-axis by the specified angle in degrees.
string
  • Overrides: object.ToString()
Refer to the documentation for object.ToString.
MeshVertexInfo Returns a new MeshVertexInfo with the texture coordinates (UV mapping) set to the specified coordinates.
MeshVertexInfo
WithTexture(PointD texture, PointD textureAfter)
MeshVertexInfo
WithTexture(double x, double y)
MeshVertexInfo
WithTexture(double bx, double by, double ax, double ay)

Operators

MeshVertexInfo Moves a vertex by the specified amount in 3D space.
MeshVertexInfo
MeshVertexInfo
operator/(MeshVertexInfo vertex, double factor)
Scales the position of a vertex by the reciprocal of the specified multiplicative factor.
MeshVertexInfo
operator/(double factor, MeshVertexInfo vertex)
MeshVertexInfo
operator*(MeshVertexInfo vertex, double factor)
Scales the position of a vertex by the specified multiplicative factor.
MeshVertexInfo
operator*(double factor, MeshVertexInfo vertex)
MeshVertexInfo Moves a vertex backwards by the specified amount in 3D space.
MeshVertexInfo

Instance properties

PtThe 3D coordinates of the vertex.
Normal Specifies how to generate the normal vector for the face “after” this vector along the first rank of the mesh. (Ignored if MeshVertexInfo.NormalOverride is specified.)
Normal Specifies how to generate the normal vector for the face “after” this vector along the second rank of the mesh. (Ignored if MeshVertexInfo.NormalOverride is specified.)
Normal Specifies how to generate the normal vector for the face “before” this vector along the first rank of the mesh. (Ignored if MeshVertexInfo.NormalOverride is specified.)
Normal Specifies how to generate the normal vector for the face “before” this vector along the second rank of the mesh. (Ignored if MeshVertexInfo.NormalOverride is specified.)
Pt?Specifies the normal vector for this vector.
PointD?Specifies the texture coordinates (UV mapping) of this vertex.
PointD?Overrides the texture coordinates for the face “after” this vertex.