Property | Type | Description | |
---|---|---|---|
Faces | OpenBveApi.Objects.SharedFace[] | ||
Normals | Vector3[] | ||
SpatialCoordinates | Vector3[] | ||
TextureCoordinates | Vector2[] |
Method | Description | |
---|---|---|
Optimize ( ) : void |
Removes all duplicate and unused coordinates.
|
|
Rotate ( |
Rotates the object from the default orientation into the specified orientation. The default orientation is X = {1, 0, 0), Y = {0, 1, 0} and Z = {0, 0, 1}. |
|
Rotate ( Vector3 direction, double cosineOfAngle, double sineOfAngle ) : void |
Rotates the object around the specified axis.
|
|
Scale ( Vector3 factor ) : void |
Scales the object by the specified factor.
|
|
Translate ( |
Translates the object by the specified offset that is measured in the specified orientation.
|
|
Translate ( Vector3 offset ) : void |
Translates the object by the specified offset.
|
Method | Description | |
---|---|---|
OptimizeNormals ( ) : void |
Removes all duplicate and unused normals.
|
|
OptimizeSpatialCoordinates ( ) : void |
Removes all duplicate and unused spatial coordinates.
|
|
OptimizeTextureCoordinates ( ) : void |
Removes all duplicate and unused texture coordinates.
|
public Rotate ( |
||
orientation | The target orientation. | |
return | void |
public Rotate ( Vector3 direction, double cosineOfAngle, double sineOfAngle ) : void | ||
direction | Vector3 | The axis along which to rotate. |
cosineOfAngle | double | The cosine of the angle by which to rotate. |
sineOfAngle | double | The sine of the angle by which to rotate. |
return | void |
public Scale ( Vector3 factor ) : void | ||
factor | Vector3 | The factor by which to scale. |
return | void |
public Translate ( |
||
orientation | The orientation along which to translate. | |
offset | Vector3 | The offset measured in the specified orientation. |
return | void |
public Translate ( Vector3 offset ) : void | ||
offset | Vector3 | The offset by which to translate. |
return | void |
public SharedFace[],OpenBveApi.Objects Faces | ||
return | OpenBveApi.Objects.SharedFace[] |