BowlerKernel
Public Member Functions | Private Attributes | List of all members
eu.mihosoft.vrl.v3d.RoundedCylinder Class Reference
Inheritance diagram for eu.mihosoft.vrl.v3d.RoundedCylinder:
Inheritance graph
[legend]
Collaboration diagram for eu.mihosoft.vrl.v3d.RoundedCylinder:
Collaboration graph
[legend]

Public Member Functions

 RoundedCylinder (double startRadius, double endRadius, double height, int numSlices)
 
 RoundedCylinder (double startRadius, double height)
 
List< PolygontoPolygons ()
 
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
 

Detailed Description

The Class RoundedCube.

Author
Michael Hoffer <info@.nosp@m.mich.nosp@m.aelho.nosp@m.ffer.nosp@m..de>

Definition at line 19 of file RoundedCylinder.java.

Constructor & Destructor Documentation

◆ RoundedCylinder() [1/2]

eu.mihosoft.vrl.v3d.RoundedCylinder.RoundedCylinder ( double  startRadius,
double  endRadius,
double  height,
int  numSlices 
)

Constructor. Creates a cylinder ranging from

[0,0,0]

to

with the specified

radius

and

. The resolution of the tessellation can be controlled with

numSlices

.

Parameters
startRadiuscylinder start radius
endRadiuscylinder end radius
heightcylinder height
numSlicesnumber 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.

Here is the call graph for this function:

◆ RoundedCylinder() [2/2]

eu.mihosoft.vrl.v3d.RoundedCylinder.RoundedCylinder ( double  startRadius,
double  height 
)

Constructor. Creates a cylinder ranging from

[0,0,0]

to

[0,0,height]

with the specified

radius

and

. The resolution of the tessellation can be controlled with

numSlices

.

Parameters
startRadiuscylinder start radius
heightcylinder 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.

Here is the call graph for this function:

Member Function Documentation

◆ cornerRadius()

RoundedCylinder eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius ( double  cornerRadius)

Corner radius.

Parameters
cornerRadiusthe corner radius to set
Returns
this cube

Definition at line 145 of file RoundedCylinder.java.

References eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius.

◆ getCornerRadius()

double eu.mihosoft.vrl.v3d.RoundedCylinder.getCornerRadius ( )

Gets the corner radius.

Returns
the corner radius

Definition at line 135 of file RoundedCylinder.java.

References eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius.

◆ getNumCornerSlices()

int eu.mihosoft.vrl.v3d.RoundedCylinder.getNumCornerSlices ( )

◆ getProperties()

PropertyStorage eu.mihosoft.vrl.v3d.RoundedCylinder.getProperties ( )

Returns the property storage of this primitive.

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.

◆ getResolution()

int eu.mihosoft.vrl.v3d.RoundedCylinder.getResolution ( )

Gets the resolution.

Returns
the resolution

Definition at line 115 of file RoundedCylinder.java.

References eu.mihosoft.vrl.v3d.RoundedCylinder.resolution.

◆ resolution()

RoundedCylinder eu.mihosoft.vrl.v3d.RoundedCylinder.resolution ( int  resolution)

Resolution.

Parameters
resolutionthe resolution to set
Returns
this cube

Definition at line 125 of file RoundedCylinder.java.

References eu.mihosoft.vrl.v3d.RoundedCylinder.resolution.

◆ setNumCornerSlices()

RoundedCylinder eu.mihosoft.vrl.v3d.RoundedCylinder.setNumCornerSlices ( int  numCornerSlices)

◆ toPolygons()

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.

Returns
a list of polygons that define this primitive

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().

Here is the call graph for this function:

Member Data Documentation

◆ cornerRadius

double eu.mihosoft.vrl.v3d.RoundedCylinder.cornerRadius = 2
private

◆ endRadius

double eu.mihosoft.vrl.v3d.RoundedCylinder.endRadius
private

◆ height

double eu.mihosoft.vrl.v3d.RoundedCylinder.height
private

◆ numCornerSlices

int eu.mihosoft.vrl.v3d.RoundedCylinder.numCornerSlices
private

◆ properties

final PropertyStorage eu.mihosoft.vrl.v3d.RoundedCylinder.properties = new PropertyStorage()
private

The properties.

Definition at line 22 of file RoundedCylinder.java.

Referenced by eu.mihosoft.vrl.v3d.RoundedCylinder.getProperties().

◆ resolution

int eu.mihosoft.vrl.v3d.RoundedCylinder.resolution = 30
private

◆ startRadius

double eu.mihosoft.vrl.v3d.RoundedCylinder.startRadius
private

The documentation for this class was generated from the following file: