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

Public Member Functions

 Hexagon (double flatToFlatDIstance, double height)
 
List< PolygontoPolygons ()
 
double getFlatToFlatDistance ()
 
double getPointToPointDistance ()
 
PropertyStorage getProperties ()
 
- Public Member Functions inherited from eu.mihosoft.vrl.v3d.Primitive
CSG toCSG ()
 

Private Attributes

double flatToFlatDistance =1
 
double height =1
 
final PropertyStorage properties = new PropertyStorage()
 
double nunRad
 
CSG head
 

Detailed Description

Definition at line 13 of file Hexagon.java.

Constructor & Destructor Documentation

◆ Hexagon()

eu.mihosoft.vrl.v3d.Hexagon.Hexagon ( double  flatToFlatDIstance,
double  height 
)

Constructor. Creates a new Hexagon that would fir a wrench of size flatToFlatDIstance radius

size

.

Parameters
flatToFlatDIstancethe size of wrench that this nut would fit

Definition at line 36 of file Hexagon.java.

References eu.mihosoft.vrl.v3d.Hexagon.height, and eu.mihosoft.vrl.v3d.Hexagon.nunRad.

Member Function Documentation

◆ getFlatToFlatDistance()

double eu.mihosoft.vrl.v3d.Hexagon.getFlatToFlatDistance ( )

Gets the flatToFlatDistance.

Returns
the flatToFlatDistance

Definition at line 60 of file Hexagon.java.

References eu.mihosoft.vrl.v3d.Hexagon.flatToFlatDistance.

◆ getPointToPointDistance()

double eu.mihosoft.vrl.v3d.Hexagon.getPointToPointDistance ( )

Gets the diameter of the outscribed circle. This is the Point To Point Distance

Returns
the Point To Point Distance

Definition at line 70 of file Hexagon.java.

References eu.mihosoft.vrl.v3d.Hexagon.nunRad.

◆ getProperties()

PropertyStorage eu.mihosoft.vrl.v3d.Hexagon.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 78 of file Hexagon.java.

References eu.mihosoft.vrl.v3d.Hexagon.properties.

◆ toPolygons()

List<Polygon> eu.mihosoft.vrl.v3d.Hexagon.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 49 of file Hexagon.java.

References eu.mihosoft.vrl.v3d.CSG.getPolygons(), eu.mihosoft.vrl.v3d.Hexagon.head, eu.mihosoft.vrl.v3d.Hexagon.height, eu.mihosoft.vrl.v3d.Hexagon.nunRad, and eu.mihosoft.vrl.v3d.Primitive.toCSG().

Here is the call graph for this function:

Member Data Documentation

◆ flatToFlatDistance

double eu.mihosoft.vrl.v3d.Hexagon.flatToFlatDistance =1
private

Hexagon circumscribed radius.

Definition at line 18 of file Hexagon.java.

Referenced by eu.mihosoft.vrl.v3d.Hexagon.getFlatToFlatDistance().

◆ head

CSG eu.mihosoft.vrl.v3d.Hexagon.head
private

Definition at line 28 of file Hexagon.java.

Referenced by eu.mihosoft.vrl.v3d.Hexagon.toPolygons().

◆ height

double eu.mihosoft.vrl.v3d.Hexagon.height =1
private

Hexagon circumscribed radius.

Definition at line 23 of file Hexagon.java.

Referenced by eu.mihosoft.vrl.v3d.Hexagon.Hexagon(), and eu.mihosoft.vrl.v3d.Hexagon.toPolygons().

◆ nunRad

double eu.mihosoft.vrl.v3d.Hexagon.nunRad
private

◆ properties

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

The properties.

Definition at line 26 of file Hexagon.java.

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


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