Constructor and Description |
---|
RoundedCube()
Constructor.
|
RoundedCube(double size)
Constructor.
|
RoundedCube(double w,
double h,
double d)
Constructor.
|
RoundedCube(eu.mihosoft.vvecmath.Vector3d center,
eu.mihosoft.vvecmath.Vector3d dimensions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
RoundedCube |
cornerRadius(double cornerRadius) |
eu.mihosoft.vvecmath.Vector3d |
getCenter() |
double |
getCornerRadius() |
eu.mihosoft.vvecmath.Vector3d |
getDimensions() |
PropertyStorage |
getProperties()
Returns the property storage of this primitive.
|
int |
getResolution() |
RoundedCube |
noCenter()
Defines that this cube will not be centered.
|
RoundedCube |
resolution(int resolution) |
void |
setCenter(eu.mihosoft.vvecmath.Vector3d center) |
void |
setCornerRadius(double cornerRadius) |
void |
setDimensions(eu.mihosoft.vvecmath.Vector3d dimensions) |
void |
setResolution(int 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(eu.mihosoft.vvecmath.Vector3d center, eu.mihosoft.vvecmath.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()
Primitive
CSG
object.toPolygons
in interface Primitive
public PropertyStorage getProperties()
Primitive
getProperties
in interface Primitive
public eu.mihosoft.vvecmath.Vector3d getCenter()
public void setCenter(eu.mihosoft.vvecmath.Vector3d center)
center
- the center to setpublic eu.mihosoft.vvecmath.Vector3d getDimensions()
public void setDimensions(eu.mihosoft.vvecmath.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