Package com.aspose.threed
Class Pyramid
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.SceneObject
-
- com.aspose.threed.Entity
-
- com.aspose.threed.Primitive
-
- com.aspose.threed.Pyramid
-
- All Implemented Interfaces:
IMeshConvertible
,INamedObject
public class Pyramid extends Primitive
Parameterized pyramid.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description Pyramid()
Construct a new pyramid instance with default bottom area(10, 10) and default height(5)Pyramid(double xbottom, double ybottom, double height)
Construct a new pyramid instance with specified bottom areaPyramid(double xbottom, double ybottom, double xtop, double ytop, double height)
Construct a new pyramid instance with specified bottom area and top area and height.Pyramid(java.lang.String name, double xbottom, double ybottom, double xtop, double ytop, double height)
Construct a new pyramid instance with specified bottom area and top area and height.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector2
getBottomArea()
Area of the bottom capVector3
getBottomOffset()
Offset for bottom verticesdouble
getHeight()
Height of the pyramidVector2
getTopArea()
Area of the top capvoid
setBottomArea(Vector2 value)
Area of the bottom capvoid
setBottomOffset(Vector3 value)
Offset for bottom verticesvoid
setHeight(double value)
Height of the pyramidvoid
setTopArea(Vector2 value)
Area of the top capMesh
toMesh()
Convert current object to mesh-
Methods inherited from class com.aspose.threed.Primitive
createEmptyMesh, getCastShadows, getReceiveShadows, merge, setCastShadows, setReceiveShadows, setup
-
Methods inherited from class com.aspose.threed.Entity
getBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
-
Methods inherited from class com.aspose.threed.SceneObject
getScene
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
Pyramid
public Pyramid()
Construct a new pyramid instance with default bottom area(10, 10) and default height(5)
-
Pyramid
public Pyramid(double xbottom, double ybottom, double height)
Construct a new pyramid instance with specified bottom area- Parameters:
xbottom
- The x-direction length of the bottomybottom
- The y-direction length of the bottomheight
- The height of the pyramid
-
Pyramid
public Pyramid(double xbottom, double ybottom, double xtop, double ytop, double height)
Construct a new pyramid instance with specified bottom area and top area and height.- Parameters:
xbottom
- The x-direction length of the bottom areaybottom
- The y-direction length of the bottom areaxtop
- The x-direction length of the top areaytop
- The y-direction length of the top areaheight
- The height of the pyramid
-
Pyramid
public Pyramid(java.lang.String name, double xbottom, double ybottom, double xtop, double ytop, double height)
Construct a new pyramid instance with specified bottom area and top area and height.- Parameters:
name
- The name of the pyramidxbottom
- The x-direction length of the bottom areaybottom
- The y-direction length of the bottom areaxtop
- The x-direction length of the top areaytop
- The y-direction length of the top areaheight
- The height of the pyramid
-
-
Method Detail
-
getBottomArea
public Vector2 getBottomArea()
Area of the bottom cap
-
setBottomArea
public void setBottomArea(Vector2 value)
Area of the bottom cap- Parameters:
value
- New value
-
getTopArea
public Vector2 getTopArea()
Area of the top cap
-
setTopArea
public void setTopArea(Vector2 value)
Area of the top cap- Parameters:
value
- New value
-
getBottomOffset
public Vector3 getBottomOffset()
Offset for bottom vertices
-
setBottomOffset
public void setBottomOffset(Vector3 value)
Offset for bottom vertices- Parameters:
value
- New value
-
getHeight
public double getHeight()
Height of the pyramid
-
setHeight
public void setHeight(double value)
Height of the pyramid- Parameters:
value
- New value
-
toMesh
public Mesh toMesh()
Convert current object to mesh- Specified by:
toMesh
in interfaceIMeshConvertible
- Specified by:
toMesh
in classPrimitive
- Returns:
- The mesh.
-
-