피라미드
Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity, com.aspose.threed.Primitive
public class Pyramid extends Primitive
파라미터화된 피라미드.
생성자
| 생성자 | 설명 |
|---|---|
| Pyramid() | 기본 바닥 영역(10, 10)과 기본 높이(5)를 사용하여 새로운 피라미드 인스턴스를 생성합니다 |
| Pyramid(double xbottom, double ybottom, double height) | 지정된 바닥 영역으로 새로운 피라미드 인스턴스를 생성합니다 |
| Pyramid(double xbottom, double ybottom, double xtop, double ytop, double height) | 지정된 바닥 영역과 상단 영역 및 높이를 사용하여 새로운 피라미드 인스턴스를 생성합니다. |
| Pyramid(String name, double xbottom, double ybottom, double xtop, double ytop, double height) | 지정된 바닥 영역과 상단 영역 및 높이를 사용하여 새로운 피라미드 인스턴스를 생성합니다. |
메서드
Pyramid()
public Pyramid()
기본 바닥 영역(10, 10)과 기본 높이(5)를 사용하여 새로운 피라미드 인스턴스를 생성합니다
Pyramid(double xbottom, double ybottom, double height)
public Pyramid(double xbottom, double ybottom, double height)
지정된 바닥 영역으로 새로운 피라미드 인스턴스를 생성합니다
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| xbottom | double | 바닥의 x 방향 길이 |
| ybottom | double | 바닥의 y 방향 길이 |
| 높이 | double | 피라미드의 높이 |
Pyramid(double xbottom, double ybottom, double xtop, double ytop, double height)
public Pyramid(double xbottom, double ybottom, double xtop, double ytop, double height)
지정된 바닥 영역과 상단 영역 및 높이를 사용하여 새로운 피라미드 인스턴스를 생성합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| xbottom | double | 바닥 영역의 x 방향 길이 |
| ybottom | double | 바닥 영역의 y 방향 길이 |
| xtop | double | 상단 영역의 x 방향 길이 |
| ytop | double | 상단 영역의 y 방향 길이 |
| 높이 | double | 피라미드의 높이 |
Pyramid(String name, double xbottom, double ybottom, double xtop, double ytop, double height)
public Pyramid(String name, double xbottom, double ybottom, double xtop, double ytop, double height)
지정된 바닥 영역과 상단 영역 및 높이를 사용하여 새로운 피라미드 인스턴스를 생성합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 이름 | java.lang.String | 피라미드의 이름 |
| xbottom | double | 바닥 영역의 x 방향 길이 |
| ybottom | double | 바닥 영역의 y 방향 길이 |
| xtop | double | 상단 영역의 x 방향 길이 |
| ytop | double | 상단 영역의 y 방향 길이 |
| 높이 | double | 피라미드의 높이 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
findProperty(String propertyName)
public Property findProperty(String propertyName)
속성을 찾습니다. 동적 속성 (Created by CreateDynamicProperty/SetProperty) 또는 네이티브 속성 (Identified by its name)일 수 있습니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| propertyName | java.lang.String | 속성 이름. |
Returns: Property - The property.
getBottomArea()
public Vector2 getBottomArea()
바닥 캡의 면적
Returns: Vector2 - Area of the bottom cap
getBottomOffset()
public Vector3 getBottomOffset()
바닥 정점의 오프셋
Returns: Vector3 - Offset for bottom vertices
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
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()
피라미드의 높이
Returns: double - 피라미드의 높이
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
getTopArea()
public Vector2 getTopArea()
상단 캡의 면적
Returns: Vector2 - Area of the top cap
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:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| property | Property | 제거할 속성 |
Returns: boolean - 속성이 성공적으로 제거되면 true
removeProperty(String property)
public boolean removeProperty(String property)
이름으로 식별되는 지정된 속성을 제거합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 속성 | java.lang.String | 제거할 속성 |
Returns: boolean - 속성이 성공적으로 제거되면 true
setBottomArea(Vector2 value)
public void setBottomArea(Vector2 value)
바닥 캡의 면적
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| value | Vector2 | 새 값 |
setBottomOffset(Vector3 value)
public void setBottomOffset(Vector3 value)
바닥 정점의 오프셋
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| value | Vector3 | 새 값 |
setCastShadows(boolean value)
public void setCastShadows(boolean value)
이 기하학이 그림자를 드리울 수 있는지 여부를 설정합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | boolean | 새 값 |
setExcluded(boolean value)
public void setExcluded(boolean value)
내보내기 중에 이 엔터티를 제외할지 여부를 설정합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | boolean | 새 값 |
setHeight(double value)
public void setHeight(double value)
피라미드의 높이
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | double | 새 값 |
setName(String value)
public void setName(String value)
이름을 설정합니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | java.lang.String | 새 값 |
setParentNode(Node value)
public void setParentNode(Node value)
첫 번째 상위 노드를 설정합니다. 첫 번째 상위 노드를 설정하면 이 엔터티는 다른 상위 노드에서 분리됩니다.
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| value | Node | 새 값 |
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:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| 값 | boolean | 새 값 |
setTopArea(Vector2 value)
public void setTopArea(Vector2 value)
상단 캡의 면적
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| value | Vector2 | 새 값 |
toMesh()
public Mesh toMesh()
현재 객체를 메시로 변환합니다.
Returns: Mesh - The mesh.
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 매개변수 | 형식 | 설명 |
|---|---|---|
| arg0 | long | |
| arg1 | int |