BooleanOperator

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

All Implemented Interfaces: com.aspose.threed.IMeshConvertible

public class BooleanOperator extends Entity implements IMeshConvertible

布尔运算符允许您对两个 IMeshConvertible 实例执行布尔操作。

构造函数

构造函数描述
BooleanOperator()BooleanOperator 的构造函数
BooleanOperator(BooleanOperation operation, A3DObject first, A3DObject second)使用两个操作数构造一个新的 BooleanOperator 实例

方法

方法描述
equals(Object arg0)
findProperty(String propertyName)查找属性。
getBoundingBox()获取当前实体在其对象空间坐标系中的边界框。
getClass()
getEntityRendererKey()获取在渲染器中注册的实体渲染器的键
getExcluded()获取在导出期间是否排除此实体。
getFirst()布尔运算符的第一个操作数
getName()获取名称。
getOperator()用于创建结果网格的操作中的布尔运算符。
getParentNode()获取第一个父节点,如果设置第一个父节点,则此实体将从其他父节点分离。
getParentNodes()获取所有父节点,实体可以附加到多个父节点以进行几何实例化
getProperties()获取所有属性的集合。
getProperty(String property)获取指定属性的值
getScene()获取此对象所属的场景
getSecond()布尔运算符的第二个操作数
hashCode()
notify()
notifyAll()
removeProperty(Property property)移除动态属性。
removeProperty(String property)移除通过名称标识的指定属性
setExcluded(boolean value)设置在导出期间是否排除此实体。
setFirst(BooleanOperand value)布尔运算符的第一个操作数
setName(String value)设置名称。
setOperator(BooleanOperation value)用于创建结果网格的操作中的布尔运算符。
setParentNode(Node value)设置第一个父节点,如果设置第一个父节点,则此实体将从其他父节点分离。
setProperty(String property, Object value)设置指定属性的值
setSecond(BooleanOperand value)布尔运算符的第二个操作数
toMesh()对两个操作数执行布尔运算
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

BooleanOperator()

public BooleanOperator()

BooleanOperator 的构造函数

BooleanOperator(BooleanOperation operation, A3DObject first, A3DObject second)

public BooleanOperator(BooleanOperation operation, A3DObject first, A3DObject second)

使用两个操作数构造一个新的 BooleanOperator 实例

Parameters:

参数类型描述
operationBooleanOperation布尔运算类型
firstA3DObjectIMeshConvertibleHalfSpaceNode 的实例
secondA3DObjectIMeshConvertibleHalfSpaceNode 的实例

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.

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());

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEntityRendererKey()

public EntityRendererKey getEntityRendererKey()

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

Returns: EntityRendererKey - the key of the entity renderer registered in the renderer

getExcluded()

public boolean getExcluded()

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

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

getFirst()

public BooleanOperand getFirst()

布尔运算符的第一个操作数

Returns: BooleanOperand - The first operand of the Boolean operator

getName()

public String getName()

获取名称。

Returns: java.lang.String - 名称。

getOperator()

public BooleanOperation getOperator()

用于创建结果网格的操作中的布尔运算符。

Returns: BooleanOperation - The Boolean operator used in the operation to create the result mesh.

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 - 找到的属性的值

getScene()

public Scene getScene()

获取此对象所属的场景

Returns: Scene - the scene that this object belongs to

getSecond()

public BooleanOperand getSecond()

布尔运算符的第二个操作数

Returns: BooleanOperand - The second operand of the Boolean operator

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

setExcluded(boolean value)

public void setExcluded(boolean value)

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

Parameters:

参数类型描述
布尔新值

setFirst(BooleanOperand value)

public void setFirst(BooleanOperand value)

布尔运算符的第一个操作数

Parameters:

参数类型描述
valueBooleanOperand新值

setName(String value)

public void setName(String value)

设置名称。

Parameters:

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

setOperator(BooleanOperation value)

public void setOperator(BooleanOperation value)

用于创建结果网格的操作中的布尔运算符。

Parameters:

参数类型描述
valueBooleanOperation新值

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属性的值

setSecond(BooleanOperand value)

public void setSecond(BooleanOperand value)

布尔运算符的第二个操作数

Parameters:

参数类型描述
valueBooleanOperand新值

toMesh()

public Mesh toMesh()

对两个操作数执行布尔运算

Returns: Mesh

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