Enumerations — Aspose.3D for TypeScript
패키지: @aspose/3d (v24.12.0)
내보낸 모든 공개 열거형 @aspose/3d. 각 열거형은 TypeScript 대신 정적 싱글톤 멤버를 가진 클래스로 구현됩니다 enum, 이는 값이 원시 문자열이나 숫자와 혼동될 수 없는 불투명 토큰이 되게 합니다.
import {
ProjectionType,
LightType,
TextureMapping,
BooleanOperation,
VertexElementType,
MappingMode,
ReferenceMode,
} from '@aspose/3d';ProjectionType
카메라 투영 모델.
export class ProjectionType {
static PERSPECTIVE: ProjectionType;
static ORTHOGRAPHIC: ProjectionType;
}| Enumeration | Description |
|---|---|
VertexElementType | Semantic role of a vertex element layer: Normal , UV , VertexColor , Tangent , Binormal , and others. |
MappingMode | Controls which primitive a vertex element value maps to: ControlPoint , PolygonVertex , or Polygon . |
ReferenceMode | Controls how values are indexed: Direct or IndexToDirect . |
VertexFieldDataType | Data type of a vertex field in a custom vertex declaration: Float , Double , Int , Vector2 , Vector3 , Vector4 . |
ColladaSaveOptions
import { Scene, Camera, ProjectionType } from '@aspose/3d';
const scene = new Scene();
const cam = new Camera();
cam.projectionType = ProjectionType.ORTHOGRAPHIC;
scene.rootNode.createChildNode('cam', cam);LightType
광원 카테고리.
export class LightType {
static POINT: LightType;
static DIRECTIONAL: LightType;
static SPOT: LightType;
static AREA: LightType;
static VOLUME: LightType;
}| Enumeration | Description |
|---|---|
ApertureMode | Camera aperture calculation mode: HorizontalAndVertical , Horizontal , Vertical , FocalLength . |
ProjectionType | Camera projection: Perspective or Orthographic . |
LightType | Type of light source: Point , Directional , Spot , Area . |
ColladaSaveOptions
import { Scene, Light, LightType } from '@aspose/3d';
const scene = new Scene();
const sun = new Light();
sun.lightType = LightType.DIRECTIONAL;
scene.rootNode.createChildNode('sun', sun);TextureMapping
UV 요소가 바인딩되는 텍스처 채널을 식별합니다.
export class TextureMapping {
static DIFFUSE: TextureMapping;
static SPECULAR: TextureMapping;
static AMBIENT: TextureMapping;
static EMISSIVE: TextureMapping;
static NORMAL: TextureMapping;
static BUMP: TextureMapping;
static OPACITY: TextureMapping;
static GLOW: TextureMapping;
static REFLECTION: TextureMapping;
static SHADOW: TextureMapping;
static SHININESS: TextureMapping;
static DISPLACEMENT: TextureMapping;
}| Enumeration | Description |
|---|---|
ExtrapolationType | How animation curves extrapolate beyond their key range: Constant , Linear , Cyclic , CyclicRelative , Oscillate . |
WeightedMode | Tangent weight mode for animation keyframes (unweighted, right-side, left-side, or both-sided weights). |
StepMode | Step interpolation mode for animation keyframes (continuous or next-step). |
RotationMode | Euler rotation order for node transforms: EulerXYZ , EulerXZY , etc. |
ColladaSaveOptions
import { Mesh, TextureMapping, MappingMode, ReferenceMode } from '@aspose/3d';
const mesh = new Mesh();
// ... add control points and polygons ...
const uv = mesh.createElementUV(TextureMapping.DIFFUSE, MappingMode.CONTROL_POINT, ReferenceMode.DIRECT);BooleanOperation
구성 솔리드 기하(CSG) 연산 유형.
export class BooleanOperation {
static ADD: BooleanOperation;
static SUB: BooleanOperation;
static INTERSECT: BooleanOperation;
}| Enumeration | Description |
|---|---|
BooleanOperation | CSG Boolean operation: Union , Difference , Intersection . |
TextureMapping | How a texture is mapped to geometry: Diffuse , Specular , Emissive , Normal , Ambient , and more. |
BooleanOperation CSG 임포터가 생성한 노드에 메타데이터로 저장됩니다. @aspose/3d 런타임 부울 평가를 수행하지 않습니다; 열거형은 소스 파일에 기록된 의도를 설명합니다.
VertexElementType
a에 대한 의미 유형 VertexElement 데이터 레이어.
export class VertexElementType {
static BINORMAL: VertexElementType;
static NORMAL: VertexElementType;
static TANGENT: VertexElementType;
static MATERIAL: VertexElementType;
static POLYGON_GROUP: VertexElementType;
static UV: VertexElementType;
static VERTEX_COLOR: VertexElementType;
static SMOOTHING_GROUP: VertexElementType;
static VERTEX_CREASE: VertexElementType;
static EDGE_CREASE: VertexElementType;
static USER_DATA: VertexElementType;
static VISIBILITY: VertexElementType;
static SPECULAR: VertexElementType;
static WEIGHT: VertexElementType;
static HOLE: VertexElementType;
}MappingMode
각 정점 요소 값이 연결되는 기하 프리미티브를 제어합니다.
export class MappingMode {
static CONTROL_POINT: MappingMode;
static POLYGON_VERTEX: MappingMode;
static POLYGON: MappingMode;
static EDGE: MappingMode;
static ALL_SAME: MappingMode;
}ReferenceMode
정점 요소 데이터 배열이 인덱싱되는 방식을 제어합니다.
export class ReferenceMode {
static DIRECT: ReferenceMode;
static INDEX: ReferenceMode;
static INDEX_TO_DIRECT: ReferenceMode;
}