VertexDeclaration

VertexDeclaration

概述

VertexDeclaration 是 Aspose.3D FOSS 中用于 Python 的类。

自定义顶点结构的声明

此类为 Python 程序中的 VertexDeclaration 对象声明了 5 个方法。可用的方法包括:__init__、add_field、clear、compare_to、from_geometry。在安装了 Aspose.3D 用于 Python 的 FOSS 包后,所有公共成员对任何 Python 应用程序均可访问。属性:count、sealed、size。

属性

名称类型访问描述
sealedbool读取获取已封闭的。
countint读取获取计数。
sizeint读取获取大小。

方法

签名描述
__init__()未在 FOSS 版中实现 — 在运行时抛出。 Calls init 在此 VertexDeclaration 实例上。
clear()在 FOSS 版中未实现——运行时抛出错误。 对该 VertexDeclaration 实例调用 clear。
add_field(data_type: 'VertexFieldDataType', semantic: 'VertexFieldSemantic', index: int, alias: str) → 'VertexField'在 FOSS 版中未实现——运行时抛出错误。 创建一个新的 VertexField,用于定义自定义顶点布局的组件。
from_geometry(geometry: 'Geometry', use_float: bool) → 'VertexDeclaration'在 FOSS 版中未实现 — 运行时抛出。 在此 VertexDeclaration 实例上调用 from_geometry(geometry, use_float)。
compare_to(other: 'VertexDeclaration') → int在 FOSS 版中未实现 — 运行时抛出。 在此 VertexDeclaration 实例上调用 compare_to(other)。

另请参阅

 中文