| Constructor and Description |
|---|
RoundedCube()
Constructor.
|
RoundedCube(double size)
Constructor.
|
RoundedCube(double w,
double h,
double d)
Constructor.
|
RoundedCube(LengthParameter size) |
RoundedCube(LengthParameter w,
LengthParameter h,
LengthParameter d) |
RoundedCube(Vector3d center,
Vector3d dimensions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RoundedCube |
cornerRadius(double cornerRadius)
Corner radius.
|
Vector3d |
getCenter()
Gets the center.
|
double |
getCornerRadius()
Gets the corner radius.
|
Vector3d |
getDimensions()
Gets the dimensions.
|
PropertyStorage |
getProperties()
Returns the property storage of this primitive.
|
int |
getResolution()
Gets the resolution.
|
RoundedCube |
noCenter()
Defines that this cube will not be centered.
|
RoundedCube |
resolution(int resolution)
Resolution.
|
void |
setCenter(Vector3d center)
Sets the center.
|
void |
setCornerRadius(double cornerRadius)
Sets the corner radius.
|
void |
setDimensions(Vector3d dimensions)
Sets the dimensions.
|
void |
setResolution(int resolution)
Sets the resolution.
|
java.util.List<Polygon> |
toPolygons()
Returns the polygons that define this primitive.
|
public RoundedCube()
[0,0,0] and
dimensions [1,1,1].public RoundedCube(double size)
[0,0,0] and
dimensions [size,size,size].size - sizepublic RoundedCube(LengthParameter w, LengthParameter h, LengthParameter d)
public RoundedCube(LengthParameter size)
public RoundedCube(Vector3d center, Vector3d dimensions)
center - center of the cuboiddimensions - cube dimensionspublic RoundedCube(double w,
double h,
double d)
[0,0,0]
and with the specified dimensions.w - widthh - heightd - depthpublic java.util.List<Polygon> toPolygons()
PrimitiveCSG object.toPolygons in class Primitivepublic PropertyStorage getProperties()
PrimitivegetProperties in class Primitivepublic Vector3d getCenter()
public void setCenter(Vector3d center)
center - the center to setpublic Vector3d getDimensions()
public void setDimensions(Vector3d dimensions)
dimensions - the dimensions to setpublic RoundedCube noCenter()
public int getResolution()
public void setResolution(int resolution)
resolution - the resolution to setpublic RoundedCube resolution(int resolution)
resolution - the resolution to setpublic double getCornerRadius()
public void setCornerRadius(double cornerRadius)
cornerRadius - the corner radius to setpublic RoundedCube cornerRadius(double cornerRadius)
cornerRadius - the corner radius to set