Enumerations — Aspose.3D for TypeScript
पैकेज: @aspose/3d (v24.12.0)
सभी सार्वजनिक enumerations निर्यात किए गए @aspose/3d. प्रत्येक enumeration को एक क्लास के रूप में लागू किया गया है जिसमें स्थैतिक सिंगलटन सदस्य होते हैं, न कि एक 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 . |
ImageRenderOptions
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 . |
ImageRenderOptions
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. |
ImageRenderOptions
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
सेमांटिक टाइप एक के लिए 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;
}