public class Dish extends Primitive
name, properties| Constructor and 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 height
|
Dish(java.lang.String name,
double radius,
double height,
int widthSegments,
int heightSegments)
Create a new dish instance with specified radius and height
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if two dishes equal
|
double |
getHeight()
Height of the dish
|
int |
getHeightSegments()
Gets the height segments
|
double |
getRadius()
Radius of the dish
|
int |
getWidthSegments()
Gets the width segments
|
int |
hashCode()
Gets the hash code of current primitive instance
|
void |
setHeight(double value)
Height of the dish
|
void |
setHeightSegments(int value)
Sets the height segments
|
void |
setRadius(double value)
Radius of the dish
|
void |
setWidthSegments(int value)
Sets the width segments
|
Mesh |
toMesh()
Convert current object to mesh
|
createEmptyMesh, getCastShadows, getReceiveShadows, merge, setCastShadows, setReceiveShadows, setupgetBoundingBox, getEntityRendererKey, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNodegetScenefindProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setPropertypublic Dish()
public Dish(double radius,
double height)
radius - The radius of the dishheight - The height of the dishpublic Dish(java.lang.String name,
double radius,
double height,
int widthSegments,
int heightSegments)
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 dishpublic double getHeight()
public void setHeight(double value)
value - New valuepublic double getRadius()
public void setRadius(double value)
value - New valuepublic int getWidthSegments()
public void setWidthSegments(int value)
value - New valuepublic int getHeightSegments()
public void setHeightSegments(int value)
value - New valuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to check equality.public Mesh toMesh()
toMesh in interface IMeshConvertibletoMesh in class Primitivepublic int hashCode()
hashCode in class java.lang.ObjectDish