LinearExtrusion

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 LinearExtrusion extends Entity implements IMeshConvertible

Linear extrusion は 2D 形状を入力として受け取り、形状を第3次元に伸長します。 Example: 以下のコードは LinearExtrusion を使用して形状をソリッドモデルに押し出す方法を示しています。

//Create a new 3D scene
 		Scene scene = new Scene();
 
 		// Initialize the base profile to be extruded
 		var profile = new RectangleShape();
 		profile.setRoundingRadius(0.3);
 
 		// Create left node
 		var left = scene.getRootNode().createChildNode();
 		left.createChildNode(new Box(0.01, 3, 3));
 
 		// Create right node
 		var right = scene.getRootNode().createChildNode();
 		right.createChildNode(new Box(0.01, 3, 3));
 		right.getTransform().setTranslation(new Vector3(5, 0, 0));
 
 		//Perform linear extrusion on left node using center and slices property
 		var l = new LinearExtrusion(profile, 10);
 		l.setCenter(false);
 		l.setSlices(3);
 		l.setTwist(20);
 		left.createChildNode(l);
 
 		// Perform linear extrusion on left node using center and slices property
 		var r = new LinearExtrusion(profile, 10);
 		r.setCenter(true);
 		r.setSlices(3);
 		r.setTwist(90);
 		right.createChildNode(r);

コンストラクタ

コンストラクタ説明
LinearExtrusion()インスタンス LinearExtrusion のコンストラクタ。
LinearExtrusion(Profile shape, double height)インスタンス LinearExtrusion のコンストラクタ。

メソッド

メソッド説明
equals(Object arg0)
findProperty(String propertyName)プロパティを検索します。
getBoundingBox()現在のエンティティのオブジェクト空間座標系におけるバウンディングボックスを取得します。
getCenter()この値が false の場合、線形押し出しの Z 範囲は 0 から高さまでになり、そうでない場合は範囲が -height/2 から height/2 になります。
getClass()
getDirection()押し出しの方向、デフォルト値は (0, 0, 1)
getEntityRendererKey()レンダラーに登録されたエンティティレンダラーのキーを取得します
getExcluded()エクスポート時にこのエンティティを除外するかどうかを取得します。
getHeight()押し出されたジオメトリの高さ、デフォルト値は 1.0
getName()名前を取得します。
getParentNode()最初の親ノードを取得します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。
getParentNodes()すべての親ノードを取得します。エンティティはジオメトリインスタンシングのために複数の親ノードにアタッチできます。
getProperties()すべてのプロパティのコレクションを取得します。
getProperty(String property)指定されたプロパティの値を取得します
getScene()このオブジェクトが属するシーンを取得します
getShape()押し出すベース形状。
getSlices()ねじれた押し出しジオメトリのスライス数、デフォルト値は 1。
getTwist()形状が押し出される角度(度数)。
getTwistOffset()ねじりに使用されるオフセット、デフォルト値は (0, 0, 0)。
hashCode()
notify()
notifyAll()
removeProperty(Property property)動的プロパティを削除します。
removeProperty(String property)名前で識別される指定されたプロパティを削除します
setCenter(boolean value)この値が false の場合、線形押し出しの Z 範囲は 0 から高さまでになり、そうでない場合は範囲が -height/2 から height/2 になります。
setDirection(Vector3 value)押し出しの方向、デフォルト値は (0, 0, 1)
setExcluded(boolean value)エクスポート時にこのエンティティを除外するかどうかを設定します。
setHeight(double value)押し出されたジオメトリの高さ、デフォルト値は 1.0
setName(String value)名前を設定します。
setParentNode(Node value)最初の親ノードを設定します。最初の親ノードを設定すると、このエンティティは他の親ノードから切り離されます。
setProperty(String property, Object value)指定されたプロパティの値を設定します
setShape(Profile value)押し出すベース形状。
setSlices(int value)ねじれた押し出しジオメトリのスライス数、デフォルト値は 1。
setTwist(double value)形状が押し出される角度(度数)。
setTwistOffset(Vector3 value)ねじりに使用されるオフセット、デフォルト値は (0, 0, 0)。
toMesh()押し出しをメッシュに変換します。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

LinearExtrusion()

public LinearExtrusion()

インスタンス LinearExtrusion のコンストラクタ。

LinearExtrusion(Profile shape, double height)

public LinearExtrusion(Profile shape, double height)

インスタンス LinearExtrusion のコンストラクタ。

Parameters:

パラメーター説明
shapeProfile
高さdouble

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメーター説明
arg0java.lang.Object

Returns: boolean

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

getCenter()

public boolean getCenter()

この値が false の場合、線形押し出しの Z 範囲は 0 から高さまでになり、そうでない場合は範囲が -height/2 から height/2 になります。

Returns: boolean - この値が false の場合、線形押し出しの Z 範囲は 0 から高さまでになり、そうでない場合は範囲が -height/2 から height/2 になります。

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDirection()

public Vector3 getDirection()

押し出しの方向、デフォルト値は (0, 0, 1)

Returns: Vector3 - The direction of extrusion, default value is (0, 0, 1)

getEntityRendererKey()

public EntityRendererKey getEntityRendererKey()

レンダラーに登録されたエンティティレンダラーのキーを取得します

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

getExcluded()

public boolean getExcluded()

エクスポート時にこのエンティティを除外するかどうかを取得します。

Returns: boolean - エクスポート時にこのエンティティを除外するかどうか。

getHeight()

public double getHeight()

押し出されたジオメトリの高さ、デフォルト値は 1.0

Returns: double - 押し出されたジオメトリの高さ、デフォルト値は 1.0

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 - 見つかったプロパティの値

getScene()

public Scene getScene()

このオブジェクトが属するシーンを取得します

Returns: Scene - the scene that this object belongs to

getShape()

public Profile getShape()

押し出すベース形状。

Returns: Profile - The base shape to be extruded.

getSlices()

public int getSlices()

ねじれた押し出しジオメトリのスライス数、デフォルト値は 1。

Returns: int - ねじれた押し出しジオメトリのスライス数、デフォルト値は 1。

getTwist()

public double getTwist()

形状が押し出される角度(度数)。

Returns: double - 形状が押し出される角度(度数)。

getTwistOffset()

public Vector3 getTwistOffset()

ねじりに使用されるオフセット、デフォルト値は (0, 0, 0)。

Returns: Vector3 - The offset that used in twisting, default value is (0, 0, 0).

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

setCenter(boolean value)

public void setCenter(boolean value)

この値が false の場合、線形押し出しの Z 範囲は 0 から高さまでになり、そうでない場合は範囲が -height/2 から height/2 になります。

Parameters:

パラメーター説明
boolean新しい値

setDirection(Vector3 value)

public void setDirection(Vector3 value)

押し出しの方向、デフォルト値は (0, 0, 1)

Parameters:

パラメーター説明
valueVector3新しい値

setExcluded(boolean value)

public void setExcluded(boolean value)

エクスポート時にこのエンティティを除外するかどうかを設定します。

Parameters:

パラメーター説明
boolean新しい値

setHeight(double value)

public void setHeight(double value)

押し出されたジオメトリの高さ、デフォルト値は 1.0

Parameters:

パラメーター説明
double新しい値

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プロパティの値

setShape(Profile value)

public void setShape(Profile value)

押し出すベース形状。

Parameters:

パラメーター説明
valueProfile新しい値

setSlices(int value)

public void setSlices(int value)

ねじれた押し出しジオメトリのスライス数、デフォルト値は 1。

Parameters:

パラメーター説明
int新しい値

setTwist(double value)

public void setTwist(double value)

形状が押し出される角度(度数)。

Parameters:

パラメーター説明
double新しい値

setTwistOffset(Vector3 value)

public void setTwistOffset(Vector3 value)

ねじりに使用されるオフセット、デフォルト値は (0, 0, 0)。

Parameters:

パラメーター説明
valueVector3新しい値

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