Enumerations — Aspose.3D TypeScript API Reference
Pakket: @aspose/3d (v24.12.0)
Alle openbare enumeraties geëxporteerd door @aspose/3d. Elke enumeratie is geïmplementeerd als een klasse met statische singleton‑leden in plaats van een TypeScript enum, waardoor waarden ondoorzichtige tokens worden die niet verward kunnen worden met ruwe strings of getallen.
import {
ProjectionType,
LightType,
TextureMapping,
BooleanOperation,
VertexElementType,
MappingMode,
ReferenceMode,
} from '@aspose/3d';ProjectionType
Camera projection model.
export class ProjectionType {
static PERSPECTIVE: ProjectionType;
static ORTHOGRAPHIC: ProjectionType;
}| BoundingBoxExtent | BoundingBoxExtent |
|---|---|
PERSPECTIVE | Standaard perspectiefprojectie; objecten lijken kleiner naarmate ze verder weg zijn. |
ORTHOGRAPHIC | Parallelle projectie; de schaal van objecten blijft constant ongeacht de diepte. Wordt gebruikt in CAD en isometrische weergaven. |
BoundingBoxExtent
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
Light source category.
export class LightType {
static POINT: LightType;
static DIRECTIONAL: LightType;
static SPOT: LightType;
static AREA: LightType;
static VOLUME: LightType;
}| BoundingBoxExtent | BoundingBoxExtent |
|---|---|
POINT | Zendt licht gelijkmatig in alle richtingen uit vanuit een punt in de ruimte. |
DIRECTIONAL | Parallelle stralen vanuit een conceptueel oneindige afstand (bijv. zonlicht). |
SPOT | Kegelvormig licht met binnen- en buitenkegelhoeken. |
AREA | Platte emissieve oppervlakte voor zachte schaduwen in PBR‑pijplijnen. |
VOLUME | Volumetrische lichtbron. |
BoundingBoxExtent
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
Identifies the texture channel a UV element is bound to.
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;
}| BoundingBoxExtent | BoundingBoxExtent |
|---|---|
DIFFUSE | Basis kleur / albedo‑kanaal. Meest gebruikte UV‑set. |
SPECULAR | Speculaire kleur‑ of reflectiviteitskanaal. |
AMBIENT | Omgevingslichtkleur‑override‑kanaal. |
EMISSIVE | Zelfverlichting emissiekanaal. |
NORMAL | Tangent-ruimte normaalmapkanaal. |
BUMP | Hoogtegebaseerd bumpmap-kanaal. |
OPACITY | Alpha / transparantiekanaal. |
GLOW | Bloom/glow-intensiteitskanaal. |
REFLECTION | Omgevingsreflectiekanaal. |
SHADOW | Schaduwprojectiekanaal. |
SHININESS | Specular exponent / roughness kanaal. |
DISPLACEMENT | Geometrieverplaatsingskanaal. |
BoundingBoxExtent
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
Constructive solid geometry (CSG) operation type.
export class BooleanOperation {
static ADD: BooleanOperation;
static SUB: BooleanOperation;
static INTERSECT: BooleanOperation;
}| BoundingBoxExtent | BoundingBoxExtent |
|---|---|
ADD | Unie: combineer de volumes van beide operanden. |
SUB | Aftrekking: verwijder het volume van de tweede operand van de eerste. |
INTERSECT | Intersectie: behoud alleen het volume dat door beide operanden wordt gedeeld. |
BooleanOperation wordt opgeslagen als metadata op knooppunten die door CSG-importeurs worden geproduceerd. @aspose/3d voert geen runtime Booleaanse evaluatie uit; de enum beschrijft de intentie die in het bronbestand is vastgelegd.
VertexElementType
Semantisch type voor een VertexElement gegevenslaag.
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;
}| BoundingBoxExtent | BoundingBoxExtent |
|---|---|
NORMAL | Oppervlakte‑normaalvectoren. |
UV | Textuur‑UV‑coördinaten. |
VERTEX_COLOR | Per-vertex RGBA-kleur. |
TANGENT | Tangentvectoren voor normal mapping. |
BINORMAL | Binormale (bitangent) vectoren. |
SMOOTHING_GROUP | Per-polygon smoothing group integer-ID’s. |
MATERIAL | Per-polygon materiaalindex. |
POLYGON_GROUP | Polygongroeperingsindex. |
VERTEX_CREASE | Subdivision-vertex crease-gewichten. |
EDGE_CREASE | Subdivision-edge crease-gewichten. |
USER_DATA | Willekeurig door gebruiker gedefinieerd kanaal. |
VISIBILITY | Per-element zichtbaarheidsvlaggen. |
SPECULAR | Speculaire kleur- of intensiteitslaag. |
WEIGHT | Skinning blend-gewichten. |
HOLE | Polygon-gatvlaggen. |
MappingMode
Controls which geometry primitive each vertex element value is associated with.
export class MappingMode {
static CONTROL_POINT: MappingMode;
static POLYGON_VERTEX: MappingMode;
static POLYGON: MappingMode;
static EDGE: MappingMode;
static ALL_SAME: MappingMode;
}| BoundingBoxExtent | BoundingBoxExtent |
|---|---|
CONTROL_POINT | Één waarde per controlepunt (vertex). |
POLYGON_VERTEX | Één waarde per polygonhoek (face-vertex). |
POLYGON | Één waarde per polygon. |
EDGE | Één waarde per edge. |
ALL_SAME | Een enkele waarde geldt voor de volledige mesh. |
ReferenceMode
Controls how the vertex element data array is indexed.
export class ReferenceMode {
static DIRECT: ReferenceMode;
static INDEX: ReferenceMode;
static INDEX_TO_DIRECT: ReferenceMode;
}| BoundingBoxExtent | BoundingBoxExtent |
|---|---|
DIRECT | Sequentiële toegang — er wordt geen index array gebruikt. |
INDEX | Een aparte index array adresseert de data array. |
INDEX_TO_DIRECT | Index array map elke mapping primitive naar een positie in de data array. |