|
JavaCAD
|


Private Member Functions | |
| Vertex | cylPoint (Vector3d axisX, Vector3d axisY, Vector3d axisZ, Vector3d ray, Vector3d s, double r, double stack, double slice, double normalBlend) |
Private Attributes | |
| Vector3d | start |
| Vector3d | end |
| double | startRadius |
| double | endRadius |
| int | numSlices =defaultNumSlices |
| final PropertyStorage | properties = new PropertyStorage() |
Static Private Attributes | |
| static final double | MINIMUM_RADIUS =0.001 |
| static int | defaultNumSlices =16 |
A solid cylinder.
The tessellation can be controlled via the numSlices parameter.
Definition at line 51 of file Cylinder.java.
| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | ) |
Constructor. Creates a new cylinder with center
and ranging from
to
, i.e.
.
Definition at line 76 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.defaultNumSlices.
| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | Vector3d | start, |
| Vector3d | end, | ||
| double | radius, | ||
| int | numSlices | ||
| ) |
Constructor. Creates a cylinder ranging from
to
with the specified
. The resolution of the tessellation can be controlled with
.
| start | cylinder start |
| end | cylinder end |
| radius | cylinder radius |
| numSlices | number of slices (used for tessellation) |
Definition at line 94 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.end, eu.mihosoft.vrl.v3d.Cylinder.MINIMUM_RADIUS, eu.mihosoft.vrl.v3d.Cylinder.numSlices, and eu.mihosoft.vrl.v3d.Cylinder.start.
| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | Vector3d | start, |
| Vector3d | end, | ||
| double | startRadius, | ||
| double | endRadius, | ||
| int | numSlices | ||
| ) |
Constructor. Creates a cylinder ranging from
to
with the specified
. The resolution of the tessellation can be controlled with
.
| start | cylinder start |
| end | cylinder end |
| startRadius | cylinder start radius |
| endRadius | cylinder end radius |
| numSlices | number of slices (used for tessellation) |
Definition at line 113 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.end, eu.mihosoft.vrl.v3d.Cylinder.endRadius, eu.mihosoft.vrl.v3d.Cylinder.MINIMUM_RADIUS, eu.mihosoft.vrl.v3d.Cylinder.numSlices, eu.mihosoft.vrl.v3d.Cylinder.start, and eu.mihosoft.vrl.v3d.Cylinder.startRadius.
| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | double | radius, |
| double | height, | ||
| int | numSlices | ||
| ) |
Constructor. Creates a cylinder ranging from
to
with the specified
and
. The resolution of the tessellation can be controlled with
.
| radius | cylinder radius |
| height | cylinder height |
| numSlices | number of slices (used for tessellation) |
Definition at line 131 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.MINIMUM_RADIUS, eu.mihosoft.vrl.v3d.Cylinder.numSlices, eu.mihosoft.vrl.v3d.Vector3d.times(), eu.mihosoft.vrl.v3d.Vector3d.Z_ONE, and eu.mihosoft.vrl.v3d.Vector3d.ZERO.

| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | 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 150 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.endRadius, eu.mihosoft.vrl.v3d.Cylinder.MINIMUM_RADIUS, eu.mihosoft.vrl.v3d.Cylinder.numSlices, eu.mihosoft.vrl.v3d.Cylinder.startRadius, eu.mihosoft.vrl.v3d.Vector3d.times(), eu.mihosoft.vrl.v3d.Vector3d.Z_ONE, and eu.mihosoft.vrl.v3d.Vector3d.ZERO.

| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | double | radius, |
| double | height | ||
| ) |
Constructor. Creates a cylinder ranging from
to
with the specified
and
. The resolution of the tessellation can be controlled with
.
| radius | cylinder radius |
| height | cylinder height |
Definition at line 166 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.MINIMUM_RADIUS, eu.mihosoft.vrl.v3d.Vector3d.times(), eu.mihosoft.vrl.v3d.Vector3d.Z_ONE, and eu.mihosoft.vrl.v3d.Vector3d.ZERO.

| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | double | startRadius, |
| double | endRadius, | ||
| 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 |
| endRadius | cylinder end radius |
| height | cylinder height |
Definition at line 183 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.endRadius, eu.mihosoft.vrl.v3d.Cylinder.MINIMUM_RADIUS, eu.mihosoft.vrl.v3d.Cylinder.startRadius, eu.mihosoft.vrl.v3d.Vector3d.times(), eu.mihosoft.vrl.v3d.Vector3d.Z_ONE, and eu.mihosoft.vrl.v3d.Vector3d.ZERO.

| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | LengthParameter | startRadius, |
| LengthParameter | endRadius, | ||
| LengthParameter | height, | ||
| int | numSlices | ||
| ) |
Definition at line 189 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.endRadius, eu.mihosoft.vrl.v3d.parametrics.Parameter.getMM(), eu.mihosoft.vrl.v3d.Cylinder.numSlices, and eu.mihosoft.vrl.v3d.Cylinder.startRadius.

| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | LengthParameter | startRadius, |
| LengthParameter | height, | ||
| int | numSlices | ||
| ) |
Definition at line 195 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.numSlices, and eu.mihosoft.vrl.v3d.Cylinder.startRadius.
| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | LengthParameter | startRadius, |
| LengthParameter | endRadius, | ||
| LengthParameter | height | ||
| ) |
Definition at line 198 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.endRadius, eu.mihosoft.vrl.v3d.parametrics.Parameter.getMM(), and eu.mihosoft.vrl.v3d.Cylinder.startRadius.

| eu.mihosoft.vrl.v3d.Cylinder.Cylinder | ( | LengthParameter | startRadius, |
| LengthParameter | height | ||
| ) |
Definition at line 204 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.startRadius.
|
private |
Cyl point.
| axisX | the axis x |
| axisY | the axis y |
| axisZ | the axis z |
| ray | the ray |
| s | the s |
| r | the r |
| stack | the stack |
| slice | the slice |
| normalBlend | the normal blend |
Definition at line 275 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Vector3d.plus(), and eu.mihosoft.vrl.v3d.Vector3d.times().
Referenced by eu.mihosoft.vrl.v3d.Cylinder.toPolygons().

| Vector3d eu.mihosoft.vrl.v3d.Cylinder.getEnd | ( | ) |
Gets the end.
Definition at line 308 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.end.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.toPolygons().
| double eu.mihosoft.vrl.v3d.Cylinder.getEndRadius | ( | ) |
Gets the end radius.
Definition at line 344 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.endRadius.
| int eu.mihosoft.vrl.v3d.Cylinder.getNumSlices | ( | ) |
Gets the num slices.
Definition at line 362 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.numSlices.
| PropertyStorage eu.mihosoft.vrl.v3d.Cylinder.getProperties | ( | ) |
Returns the property storage of this primitive.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 379 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.properties.
| Vector3d eu.mihosoft.vrl.v3d.Cylinder.getStart | ( | ) |
Gets the start.
Definition at line 290 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.start.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.toPolygons().
| double eu.mihosoft.vrl.v3d.Cylinder.getStartRadius | ( | ) |
Gets the start radius.
Definition at line 326 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.startRadius.
| void eu.mihosoft.vrl.v3d.Cylinder.setEnd | ( | Vector3d | end | ) |
Sets the end.
| end | the end to set |
Definition at line 317 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.end.
| void eu.mihosoft.vrl.v3d.Cylinder.setEndRadius | ( | double | radius | ) |
Sets the end radius.
| radius | the radius to set |
Definition at line 353 of file Cylinder.java.
| void eu.mihosoft.vrl.v3d.Cylinder.setNumSlices | ( | int | numSlices | ) |
Sets the num slices.
| numSlices | the number of slices to set |
Definition at line 371 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.numSlices.
| void eu.mihosoft.vrl.v3d.Cylinder.setStart | ( | Vector3d | start | ) |
Sets the start.
| start | the start to set |
Definition at line 299 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Cylinder.start.
| void eu.mihosoft.vrl.v3d.Cylinder.setStartRadius | ( | double | radius | ) |
Sets the start radius.
| radius | the radius to set |
Definition at line 335 of file Cylinder.java.
| List<Polygon> eu.mihosoft.vrl.v3d.Cylinder.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 211 of file Cylinder.java.
References eu.mihosoft.vrl.v3d.Vector3d.cross(), eu.mihosoft.vrl.v3d.Cylinder.cylPoint(), eu.mihosoft.vrl.v3d.Cylinder.endRadius, eu.mihosoft.vrl.v3d.Cylinder.getEnd(), eu.mihosoft.vrl.v3d.Cylinder.getStart(), eu.mihosoft.vrl.v3d.Vector3d.minus(), eu.mihosoft.vrl.v3d.Vector3d.negated(), eu.mihosoft.vrl.v3d.Vector3d.normalized(), eu.mihosoft.vrl.v3d.Cylinder.numSlices, eu.mihosoft.vrl.v3d.Cylinder.properties, eu.mihosoft.vrl.v3d.Cylinder.startRadius, eu.mihosoft.vrl.v3d.Vector3d.y(), and eu.mihosoft.vrl.v3d.Vector3d.z().

|
staticprivate |
Definition at line 63 of file Cylinder.java.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.Cylinder().
|
private |
The end.
Definition at line 56 of file Cylinder.java.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.Cylinder(), eu.mihosoft.vrl.v3d.Cylinder.getEnd(), and eu.mihosoft.vrl.v3d.Cylinder.setEnd().
|
private |
The end radius.
Definition at line 62 of file Cylinder.java.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.Cylinder(), eu.mihosoft.vrl.v3d.Cylinder.getEndRadius(), and eu.mihosoft.vrl.v3d.Cylinder.toPolygons().
|
staticprivate |
Definition at line 52 of file Cylinder.java.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.Cylinder().
|
private |
The num slices.
Definition at line 66 of file Cylinder.java.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.Cylinder(), eu.mihosoft.vrl.v3d.Cylinder.getNumSlices(), eu.mihosoft.vrl.v3d.Cylinder.setNumSlices(), and eu.mihosoft.vrl.v3d.Cylinder.toPolygons().
|
private |
The properties.
Definition at line 69 of file Cylinder.java.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.getProperties(), and eu.mihosoft.vrl.v3d.Cylinder.toPolygons().
|
private |
Definition at line 53 of file Cylinder.java.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.Cylinder(), eu.mihosoft.vrl.v3d.Cylinder.getStart(), and eu.mihosoft.vrl.v3d.Cylinder.setStart().
|
private |
The start radius.
Definition at line 59 of file Cylinder.java.
Referenced by eu.mihosoft.vrl.v3d.Cylinder.Cylinder(), eu.mihosoft.vrl.v3d.Cylinder.getStartRadius(), and eu.mihosoft.vrl.v3d.Cylinder.toPolygons().