Package com.aspose.threed
Class Dish
- java.lang.Object
-
- All Implemented Interfaces:
IMeshConvertible
,INamedObject
public class Dish extends Primitive
Parameterized dish.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description Dish()
Create a new dish instance with default radius(10) and default height(5)Dish(double radius, double height)
Create a new dish instance with specified radius and heightDish(java.lang.String name, double radius, double height, int widthSegments, int heightSegments)
Create a new dish instance with specified radius and height
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
Height of the dishint
getHeightSegments()
Gets the height segmentsdouble
getRadius()
Radius of the dishint
getWidthSegments()
Gets the width segmentsvoid
setHeight(double value)
Height of the dishvoid
setHeightSegments(int value)
Sets the height segmentsvoid
setRadius(double value)
Radius of the dishvoid
setWidthSegments(int value)
Sets the width segmentsMesh
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
-
Dish
public Dish()
Create a new dish instance with default radius(10) and default height(5)
-
Dish
public Dish(double radius, double height)
Create a new dish instance with specified radius and height- Parameters:
radius
- The radius of the dishheight
- The height of the dish
-
Dish
public Dish(java.lang.String name, double radius, double height, int widthSegments, int heightSegments)
Create a new dish instance with specified radius and height- Parameters:
name
- The name of the dishradius
- The radius of the dishheight
- The height of the dishwidthSegments
- The width segment of the dishheightSegments
- The height segment of the dish
-
-
Method Detail
-
getHeight
public double getHeight()
Height of the dish
-
setHeight
public void setHeight(double value)
Height of the dish- Parameters:
value
- New value
-
getRadius
public double getRadius()
Radius of the dish
-
setRadius
public void setRadius(double value)
Radius of the dish- Parameters:
value
- New value
-
getWidthSegments
public int getWidthSegments()
Gets the width segments
-
setWidthSegments
public void setWidthSegments(int value)
Sets the width segments- Parameters:
value
- New value
-
getHeightSegments
public int getHeightSegments()
Gets the height segments
-
setHeightSegments
public void setHeightSegments(int value)
Sets the height segments- 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.
-
-