|
BowlerKernel
|


Public Member Functions | |
| RoundedCylinder (double startRadius, double endRadius, double height, int numSlices) | |
| RoundedCylinder (double startRadius, double height) | |
| List< Polygon > | toPolygons () |
| PropertyStorage | getProperties () |
| int | getResolution () |
| RoundedCylinder | resolution (int resolution) |
| double | getCornerRadius () |
| RoundedCylinder | cornerRadius (double cornerRadius) |
| int | getNumCornerSlices () |
| RoundedCylinder | setNumCornerSlices (int numCornerSlices) |
Public Member Functions inherited from eu.mihosoft.vrl.v3d.Primitive | |
| CSG | toCSG () |
Private Attributes | |
| final PropertyStorage | properties = new PropertyStorage() |
| double | cornerRadius = 2 |
| int | resolution = 30 |
| double | startRadius |
| double | endRadius |
| double | height |
| int | numCornerSlices |
The Class RoundedCube.
Definition at line 19 of file RoundedCylinder.java.
| eu.mihosoft.vrl.v3d.RoundedCylinder.RoundedCylinder | ( | double | startRadius, |
| double | endRadius, | ||
| double | height, | ||
| int | numSlices | ||
| ) |
Constructor. Creates a cylinder ranging from
to
with the specified
and
. The resolution of the tessellation can be controlled with
.
| startRadius | cylinder start radius |
| endRadius | cylinder end radius |
| height | cylinder height |
| numSlices | number of slices (used for tessellation) |
Definition at line 49 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.endRadius, eu.mihosoft.vrl.v3d.RoundedCylinder.height, eu.mihosoft.vrl.v3d.RoundedCylinder.setNumCornerSlices(), and eu.mihosoft.vrl.v3d.RoundedCylinder.startRadius.

| eu.mihosoft.vrl.v3d.RoundedCylinder.RoundedCylinder | ( | double | startRadius, |
| double | height | ||
| ) |
Constructor. Creates a cylinder ranging from
to
with the specified
and
. The resolution of the tessellation can be controlled with
.
| startRadius | cylinder start radius |
| height | cylinder height |
Definition at line 66 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.height, eu.mihosoft.vrl.v3d.RoundedCylinder.setNumCornerSlices(), and eu.mihosoft.vrl.v3d.RoundedCylinder.startRadius.

| RoundedCylinder eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius | ( | double | cornerRadius | ) |
Corner radius.
| cornerRadius | the corner radius to set |
Definition at line 145 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius.
| double eu.mihosoft.vrl.v3d.RoundedCylinder.getCornerRadius | ( | ) |
Gets the corner radius.
Definition at line 135 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius.
| int eu.mihosoft.vrl.v3d.RoundedCylinder.getNumCornerSlices | ( | ) |
Definition at line 152 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.numCornerSlices.
| PropertyStorage eu.mihosoft.vrl.v3d.RoundedCylinder.getProperties | ( | ) |
Returns the property storage of this primitive.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 105 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.properties.
| int eu.mihosoft.vrl.v3d.RoundedCylinder.getResolution | ( | ) |
Gets the resolution.
Definition at line 115 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.resolution.
| RoundedCylinder eu.mihosoft.vrl.v3d.RoundedCylinder.resolution | ( | int | resolution | ) |
Resolution.
| resolution | the resolution to set |
Definition at line 125 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.resolution.
| RoundedCylinder eu.mihosoft.vrl.v3d.RoundedCylinder.setNumCornerSlices | ( | int | numCornerSlices | ) |
Definition at line 158 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.numCornerSlices.
Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.RoundedCylinder().
| List<Polygon> eu.mihosoft.vrl.v3d.RoundedCylinder.toPolygons | ( | ) |
Returns the polygons that define this primitive.
Note: this method computes the polygons each time this method is called. The polygons can be cached inside a CSG object.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 79 of file RoundedCylinder.java.
References eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius, eu.mihosoft.vrl.v3d.RoundedCylinder.endRadius, eu.mihosoft.vrl.v3d.CSG.getPolygons(), eu.mihosoft.vrl.v3d.RoundedCylinder.height, eu.mihosoft.vrl.v3d.ext.quickhull3d.HullUtil.hull(), eu.mihosoft.vrl.v3d.CSG.movez(), eu.mihosoft.vrl.v3d.RoundedCylinder.numCornerSlices, eu.mihosoft.vrl.v3d.RoundedCylinder.resolution, eu.mihosoft.vrl.v3d.RoundedCylinder.startRadius, eu.mihosoft.vrl.v3d.Primitive.toCSG(), and eu.mihosoft.vrl.v3d.CSG.toZMin().

|
private |
The corner radius.
Definition at line 25 of file RoundedCylinder.java.
Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius(), eu.mihosoft.vrl.v3d.RoundedCylinder.getCornerRadius(), and eu.mihosoft.vrl.v3d.RoundedCylinder.toPolygons().
|
private |
Definition at line 32 of file RoundedCylinder.java.
Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.RoundedCylinder(), and eu.mihosoft.vrl.v3d.RoundedCylinder.toPolygons().
|
private |
Definition at line 34 of file RoundedCylinder.java.
Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.RoundedCylinder(), and eu.mihosoft.vrl.v3d.RoundedCylinder.toPolygons().
|
private |
Definition at line 36 of file RoundedCylinder.java.
Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.getNumCornerSlices(), eu.mihosoft.vrl.v3d.RoundedCylinder.setNumCornerSlices(), and eu.mihosoft.vrl.v3d.RoundedCylinder.toPolygons().
|
private |
The properties.
Definition at line 22 of file RoundedCylinder.java.
Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.getProperties().
|
private |
The resolution.
Definition at line 28 of file RoundedCylinder.java.
Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.getResolution(), eu.mihosoft.vrl.v3d.RoundedCylinder.resolution(), and eu.mihosoft.vrl.v3d.RoundedCylinder.toPolygons().
|
private |
Definition at line 30 of file RoundedCylinder.java.
Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.RoundedCylinder(), and eu.mihosoft.vrl.v3d.RoundedCylinder.toPolygons().