C# 클래스 OpenBveApi.Objects.SharedMesh

Represents a mesh with coordinates shared between faces.
상속: StaticObject
파일 보기 프로젝트 열기: sladen/openbve

공개 프로퍼티들

프로퍼티 타입 설명
Faces OpenBveApi.Objects.SharedFace[]
Normals Vector3[]
SpatialCoordinates Vector3[]
TextureCoordinates Vector2[]

공개 메소드들

메소드 설명
Optimize ( ) : void

Removes all duplicate and unused coordinates.

Rotate ( Orientation3 orientation ) : void

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 ( Orientation3 orientation, Vector3 offset ) : void

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.

비공개 메소드들

메소드 설명
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.

메소드 상세

Optimize() 공개 메소드

Removes all duplicate and unused coordinates.
public Optimize ( ) : void
리턴 void

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}.
public Rotate ( Orientation3 orientation ) : void
orientation OpenBveApi.Math.Orientation3 The target orientation.
리턴 void

Rotate() 공개 메소드

Rotates the object around the specified axis.
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.
리턴 void

Scale() 공개 메소드

Scales the object by the specified factor.
Raised when any component in the factor is zero.
public Scale ( Vector3 factor ) : void
factor Vector3 The factor by which to scale.
리턴 void

Translate() 공개 메소드

Translates the object by the specified offset that is measured in the specified orientation.
public Translate ( Orientation3 orientation, Vector3 offset ) : void
orientation OpenBveApi.Math.Orientation3 The orientation along which to translate.
offset Vector3 The offset measured in the specified orientation.
리턴 void

Translate() 공개 메소드

Translates the object by the specified offset.
public Translate ( Vector3 offset ) : void
offset Vector3 The offset by which to translate.
리턴 void

프로퍼티 상세

Faces 공개적으로 프로퍼티

The faces stored in this mesh.
public SharedFace[],OpenBveApi.Objects Faces
리턴 OpenBveApi.Objects.SharedFace[]

Normals 공개적으로 프로퍼티

The list of unique normals.
public Vector3[] Normals
리턴 Vector3[]

SpatialCoordinates 공개적으로 프로퍼티

The list of unique spatial coordinates.
public Vector3[] SpatialCoordinates
리턴 Vector3[]

TextureCoordinates 공개적으로 프로퍼티

The list of unique texture coordinates.
public Vector2[] TextureCoordinates
리턴 Vector2[]