PointCloud

Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity, com.aspose.threed.Geometry

public class PointCloud extends Geometry

点云不包含拓扑信息,仅包含控制点和顶点元素。

构造函数

构造函数描述
PointCloud(String name)PointCloud 的构造函数
PointCloud()PointCloud 的构造函数

方法

方法描述
getDeformers2()获取所有具有指定变形器类型的变形器
addElement(VertexElement element)向当前几何体添加现有的顶点元素
createElement(VertexElementType type)创建具有指定类型的顶点元素并将其添加到几何体中。
createElement(VertexElementType type, MappingMode mappingMode, ReferenceMode referenceMode)创建具有指定类型的顶点元素并将其添加到几何体中。
createElementUV(TextureMapping uvMapping)创建一个具有给定纹理映射类型的 VertexElementUV
createElementUV(TextureMapping uvMapping, MappingMode mappingMode, ReferenceMode referenceMode)创建一个具有给定纹理映射类型的 VertexElementUV
equals(Object arg0)
findProperty(String propertyName)查找属性。
fromGeometry(Geometry g)从几何对象创建一个新的 PointCloud 实例
fromGeometry(Geometry g, int density)从几何对象创建一个新的点云实例。
getBoundingBox()获取当前实体在其对象空间坐标系中的边界框。
getCastShadows()获取此几何体是否可以投射阴影
getClass()
getControlPoints()获取所有控制点
getDeformers()获取与此几何体关联的所有变形器。
getDimension()如果点云存在维度值,则表示它是有组织的点云。
getElement(VertexElementType type)获取具有指定类型的顶点元素
getEntityRendererKey()获取在渲染器中注册的实体渲染器的键
getExcluded()获取在导出期间是否排除此实体。
getName()获取名称。
getParentNode()获取第一个父节点,如果设置第一个父节点,则此实体将从其他父节点分离。
getParentNodes()获取所有父节点,实体可以附加到多个父节点以进行几何实例化
getProperties()获取所有属性的集合。
getProperty(String property)获取指定属性的值
getReceiveShadows()获取此几何体是否可以接收阴影。
getScene()获取此对象所属的场景
getVertexElementOfUV(TextureMapping textureMapping)获取一个具有给定纹理映射类型的 VertexElementUV 实例
getVertexElements()获取所有顶点元素
getVisible()获取几何体是否可见
hashCode()
notify()
notifyAll()
removeProperty(Property property)移除动态属性。
removeProperty(String property)移除通过名称标识的指定属性
setCastShadows(boolean value)设置此几何体是否可以投射阴影
setDimension(Vector2 value)如果点云存在维度值,则表示它是有组织的点云。
setExcluded(boolean value)设置在导出期间是否排除此实体。
setName(String value)设置名称。
setParentNode(Node value)设置第一个父节点,如果设置第一个父节点,则此实体将从其他父节点分离。
setProperty(String property, Object value)设置指定属性的值
setReceiveShadows(boolean value)设置此几何体是否可以接收阴影。
setVisible(boolean value)设置几何体是否可见
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PointCloud(String name)

public PointCloud(String name)

PointCloud 的构造函数

Parameters:

参数类型描述
名称java.lang.String此实体的名称

PointCloud()

public PointCloud()

PointCloud 的构造函数

getDeformers2()

public Collection<T> <T>getDeformers2()

获取所有具有指定变形器类型的变形器

Returns: java.util.Collection - 变形器集合

addElement(VertexElement element)

public void addElement(VertexElement element)

向当前几何体添加现有的顶点元素

Parameters:

参数类型描述
elementVertexElement要添加的顶点元素

createElement(VertexElementType type)

public VertexElement createElement(VertexElementType type)

创建具有指定类型的顶点元素并将其添加到几何体中。

Parameters:

参数类型描述
typeVertexElementType顶点元素类型

Returns: VertexElement - Created element. Remarks: If type is VertexElementType.UV, a VertexElementUV with texture mapping type to TextureMapping.DIFFUSE will be created.

createElement(VertexElementType type, MappingMode mappingMode, ReferenceMode referenceMode)

public VertexElement createElement(VertexElementType type, MappingMode mappingMode, ReferenceMode referenceMode)

创建具有指定类型的顶点元素并将其添加到几何体中。

Parameters:

参数类型描述
typeVertexElementType顶点元素类型
mappingModeMappingMode默认映射模式
referenceModeReferenceMode默认引用模式

Returns: VertexElement - Created element. Remarks: If type is VertexElementType.UV, a VertexElementUV with texture mapping type to TextureMapping.DIFFUSE will be created.

createElementUV(TextureMapping uvMapping)

public VertexElementUV createElementUV(TextureMapping uvMapping)

创建一个具有给定纹理映射类型的 VertexElementUV

Parameters:

参数类型描述
uvMappingTextureMapping要创建的纹理映射类型

Returns: VertexElementUV - Created element uv

createElementUV(TextureMapping uvMapping, MappingMode mappingMode, ReferenceMode referenceMode)

public VertexElementUV createElementUV(TextureMapping uvMapping, MappingMode mappingMode, ReferenceMode referenceMode)

创建一个具有给定纹理映射类型的 VertexElementUV

Parameters:

参数类型描述
uvMappingTextureMapping要创建的纹理映射类型
mappingModeMappingMode默认映射模式
referenceModeReferenceMode默认引用模式

Returns: VertexElementUV - Created element uv

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: 布尔

findProperty(String propertyName)

public Property findProperty(String propertyName)

查找属性。它可以是动态属性(由 CreateDynamicProperty/SetProperty 创建)或本机属性(通过其名称标识)

Parameters:

参数类型描述
propertyNamejava.lang.String属性名称。

Returns: Property - The property.

fromGeometry(Geometry g)

public static PointCloud fromGeometry(Geometry g)

从几何对象创建一个新的 PointCloud 实例

Parameters:

参数类型描述
gGeometry

Returns: PointCloud

fromGeometry(Geometry g, int density)

public static PointCloud fromGeometry(Geometry g, int density)

从几何对象创建一个新的点云实例。密度是每单位三角形的点数(单位三角形是网格中表面积最大的三角形)。

Parameters:

参数类型描述
gGeometry网格或其他几何实例
密度int每单位三角形的点数

Returns: PointCloud

getBoundingBox()

public BoundingBox getBoundingBox()

获取当前实体在其对象空间坐标系中的边界框。

Returns: BoundingBox - the bounding box of current entity in its object space coordinate system. Example: The following code shows how to calculate the bounding box of a shape

Entity entity = new Sphere();
     entity.setRadius(10);
     var bbox = entity.getBoundingBox();
     System.out.printf("The bounding box of the entity is %s ~ %s", bbox.getMinimum(), bbox.getMaximum());

getCastShadows()

public boolean getCastShadows()

获取此几何体是否可以投射阴影

Returns: boolean - 此几何体是否可以投射阴影

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getControlPoints()

public List<Vector4> getControlPoints()

获取所有控制点

Returns: java.util.List<com.aspose.threed.Vector4> - 所有控制点

getDeformers()

public List<Deformer> getDeformers()

获取与此几何体关联的所有变形器。

Returns: java.util.List<com.aspose.threed.Deformer> - 与此几何体关联的所有变形器。

getDimension()

public Vector2 getDimension()

如果点云存在维度值,则表示它是有组织的点云。未指定尺寸时,视为无组织的点云。有组织的点云意味着它具有类似图像的结构。

Returns: Vector2 - If a dimension value is present for the point cloud, it indicates an organized point cloud. Without a specified size, it is considered an unorganized point cloud. Organized point cloud means it has an image-like structure.

getElement(VertexElementType type)

public VertexElement getElement(VertexElementType type)

获取具有指定类型的顶点元素

Parameters:

参数类型描述
typeVertexElementType要查找的顶点元素类型

Returns: VertexElement - VertexElement instance if found, otherwise null will be returned.

getEntityRendererKey()

public EntityRendererKey getEntityRendererKey()

获取在渲染器中注册的实体渲染器的键

Returns: EntityRendererKey

getExcluded()

public boolean getExcluded()

获取在导出期间是否排除此实体。

Returns: boolean - 是否在导出期间排除此实体。

getName()

public String getName()

获取名称。

Returns: java.lang.String - 名称。

getParentNode()

public Node getParentNode()

获取第一个父节点,如果设置第一个父节点,则此实体将从其他父节点分离。

Returns: Node - the first parent node, if set the first parent node, this entity will be detached from other parent nodes.

getParentNodes()

public ArrayList<Node> getParentNodes()

获取所有父节点,实体可以附加到多个父节点以进行几何实例化

Returns: java.util.ArrayList<com.aspose.threed.Node> - 所有父节点,实体可以附加到多个父节点以实现几何实例化

getProperties()

public PropertyCollection getProperties()

获取所有属性的集合。

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

获取指定属性的值

Parameters:

参数类型描述
属性java.lang.String属性名称

Returns: java.lang.Object - 找到的属性的值

getReceiveShadows()

public boolean getReceiveShadows()

获取此几何体是否可以接收阴影。

Returns: boolean - 此几何体是否可以接收阴影。

getScene()

public Scene getScene()

获取此对象所属的场景

Returns: Scene - the scene that this object belongs to

getVertexElementOfUV(TextureMapping textureMapping)

public VertexElementUV getVertexElementOfUV(TextureMapping textureMapping)

获取一个具有给定纹理映射类型的 VertexElementUV 实例

Parameters:

参数类型描述
textureMappingTextureMapping

Returns: VertexElementUV - VertexElementUV with the texture mapping type

getVertexElements()

public List<VertexElement> getVertexElements()

获取所有顶点元素

Returns: java.util.List<com.aspose.threed.VertexElement> - 所有顶点元素

getVisible()

public boolean getVisible()

获取几何体是否可见

Returns: boolean - 几何体是否可见

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

移除动态属性。

Parameters:

参数类型描述
propertyProperty要删除哪个属性

Returns: boolean - 如果属性成功删除则为 true

removeProperty(String property)

public boolean removeProperty(String property)

移除通过名称标识的指定属性

Parameters:

参数类型描述
属性java.lang.String要删除哪个属性

Returns: boolean - 如果属性成功删除则为 true

setCastShadows(boolean value)

public void setCastShadows(boolean value)

设置此几何体是否可以投射阴影

Parameters:

参数类型描述
布尔新值

setDimension(Vector2 value)

public void setDimension(Vector2 value)

如果点云存在维度值,则表示它是有组织的点云。未指定尺寸时,视为无组织的点云。有组织的点云意味着它具有类似图像的结构。

Parameters:

参数类型描述
valueVector2新值

setExcluded(boolean value)

public void setExcluded(boolean value)

设置在导出期间是否排除此实体。

Parameters:

参数类型描述
布尔新值

setName(String value)

public void setName(String value)

设置名称。

Parameters:

参数类型描述
java.lang.String新值

setParentNode(Node value)

public void setParentNode(Node value)

设置第一个父节点,如果设置第一个父节点,则此实体将从其他父节点分离。

Parameters:

参数类型描述
valueNode新值

setProperty(String property, Object value)

public void setProperty(String property, Object value)

设置指定属性的值

Parameters:

参数类型描述
属性java.lang.String属性名称
java.lang.Object属性的值

setReceiveShadows(boolean value)

public void setReceiveShadows(boolean value)

设置此几何体是否可以接收阴影。

Parameters:

参数类型描述
布尔新值

setVisible(boolean value)

public void setVisible(boolean value)

设置几何体是否可见

Parameters:

参数类型描述
布尔新值

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int