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;
}
BoundingBoxExtentBoundingBoxExtent
PERSPECTIVEStandaard perspectiefprojectie; objecten lijken kleiner naarmate ze verder weg zijn.
ORTHOGRAPHICParallelle 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;
}
BoundingBoxExtentBoundingBoxExtent
POINTZendt licht gelijkmatig in alle richtingen uit vanuit een punt in de ruimte.
DIRECTIONALParallelle stralen vanuit een conceptueel oneindige afstand (bijv. zonlicht).
SPOTKegelvormig licht met binnen- en buitenkegelhoeken.
AREAPlatte emissieve oppervlakte voor zachte schaduwen in PBR‑pijplijnen.
VOLUMEVolumetrische 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;
}
BoundingBoxExtentBoundingBoxExtent
DIFFUSEBasis kleur / albedo‑kanaal. Meest gebruikte UV‑set.
SPECULARSpeculaire kleur‑ of reflectiviteitskanaal.
AMBIENTOmgevingslichtkleur‑override‑kanaal.
EMISSIVEZelfverlichting emissiekanaal.
NORMALTangent-ruimte normaalmapkanaal.
BUMPHoogtegebaseerd bumpmap-kanaal.
OPACITYAlpha / transparantiekanaal.
GLOWBloom/glow-intensiteitskanaal.
REFLECTIONOmgevingsreflectiekanaal.
SHADOWSchaduwprojectiekanaal.
SHININESSSpecular exponent / roughness kanaal.
DISPLACEMENTGeometrieverplaatsingskanaal.

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;
}
BoundingBoxExtentBoundingBoxExtent
ADDUnie: combineer de volumes van beide operanden.
SUBAftrekking: verwijder het volume van de tweede operand van de eerste.
INTERSECTIntersectie: 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;
}
BoundingBoxExtentBoundingBoxExtent
NORMALOppervlakte‑normaalvectoren.
UVTextuur‑UV‑coördinaten.
VERTEX_COLORPer-vertex RGBA-kleur.
TANGENTTangentvectoren voor normal mapping.
BINORMALBinormale (bitangent) vectoren.
SMOOTHING_GROUPPer-polygon smoothing group integer-ID’s.
MATERIALPer-polygon materiaalindex.
POLYGON_GROUPPolygongroeperingsindex.
VERTEX_CREASESubdivision-vertex crease-gewichten.
EDGE_CREASESubdivision-edge crease-gewichten.
USER_DATAWillekeurig door gebruiker gedefinieerd kanaal.
VISIBILITYPer-element zichtbaarheidsvlaggen.
SPECULARSpeculaire kleur- of intensiteitslaag.
WEIGHTSkinning blend-gewichten.
HOLEPolygon-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;
}
BoundingBoxExtentBoundingBoxExtent
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_SAMEEen 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;
}
BoundingBoxExtentBoundingBoxExtent
DIRECTSequentiële toegang — er wordt geen index array gebruikt.
INDEXEen aparte index array adresseert de data array.
INDEX_TO_DIRECTIndex array map elke mapping primitive naar een positie in de data array.

See Also

 Nederlands