Enumerations — Aspose.3D FOSS for Java
包:: com.aspose.threed (aspose-3d-foss 26.1.0)
此页面记录了所有独立的枚举。顶点元素语义的枚举(VertexElementType, MappingMode, ReferenceMode)也记录在 VertexElement 参考页面.
TextureMapping
标识 UV 元素或纹理在表面上绑定的语义通道。.
import com.aspose.threed.*;| ReferenceMode | ReferenceMode |
|---|---|
AMBIENT | 环境光颜色覆盖纹理。. |
DIFFUSE | 反照率/基础颜色纹理通道。. |
EMISSIVE | 自发光/发射纹理通道。. |
NORMAL | 切线空间法线贴图通道。. |
SPECULAR | 高光颜色或强度纹理通道。. |
BUMP | 基于高度的凹凸贴图通道。. |
REFLECTION | 环境反射纹理通道。. |
TRANSPARENCY | 透明度/Alpha 纹理通道。. |
GLOW | 辉光/泛光强度纹理通道。. |
ReferenceMode
import com.aspose.threed.*;
Mesh mesh = new Mesh();
// ... define control points and polygons ...
// Attach a UV layer for the diffuse channel
VertexElementUV uv = mesh.createElementUV(
TextureMapping.DIFFUSE,
MappingMode.CONTROL_POINT,
ReferenceMode.DIRECT
);BooleanOperation
标识两个网格对象之间的构造实体几何(CSG)布尔运算的类型。.
import com.aspose.threed.*;| ReferenceMode | ReferenceMode |
|---|---|
UNION | Union:结果是两个操作数的组合体积。. |
DIFFERENCE | Difference:第二个操作数的体积从第一个中移除。. |
INTERSECTION | Intersection:结果是两个操作数共享的体积。. |
BooleanOperation 存储为节点或由 CSG 导入器生成的自定义对象的元数据。Aspose.3D 用于 Java 不提供运行时布尔求值器;该枚举描述源文件意图。.
ReferenceMode
标识坐标轴。用于坐标系重新映射选项和 AssetInfo.
import com.aspose.threed.*;| ReferenceMode | ReferenceMode |
|---|---|
X_AXIS | 正 X 轴。. |
Y_AXIS | 正 Y 轴。. |
Z_AXIS | 正 Z 轴。. |
NEGATIVE_X_AXIS | 负 X 轴。. |
NEGATIVE_Y_AXIS | 负 Y 轴。. |
NEGATIVE_Z_AXIS | 负 Z 轴。. |
CoordinateSystem
指定场景坐标系的手性约定。.
import com.aspose.threed.*;| ReferenceMode | ReferenceMode |
|---|---|
RIGHT_HANDED | 右手坐标系(OpenGL、glTF、Blender 默认)。. |
LEFT_HANDED | 左手坐标系(DirectX,Unity 默认)。. |
FileContentType
标识文件格式的内容类型。.
import com.aspose.threed.*;| ReferenceMode | ReferenceMode |
|---|---|
ASCII | 基于文本的文件格式(例如 OBJ ASCII、STL ASCII、glTF JSON)。. |
BINARY | 二进制文件格式(例如 STL binary、GLB、FBX binary)。. |
VertexElementType
a 的语义类型。 VertexElement 层。另见:: VertexElement 参考.
MappingMode
控制每个顶点元素值关联的几何基元。可用值:: CONTROL_POINT, POLYGON_VERTEX, POLYGON. 另见:: VertexElement 参考.
ReferenceMode
控制 vertex element 数据数组的索引方式。另见:: VertexElement 参考.