JavaCAD
src
main
java
eu
mihosoft
vrl
v3d
Primitive.java
Go to the documentation of this file.
1
31
package
eu.mihosoft.vrl.v3d;
32
33
import
java.util.ArrayList;
34
import
java.util.List;
35
36
import
eu.mihosoft.vrl.v3d.parametrics.Parameter;
37
38
// TODO: Auto-generated Javadoc
44
public
abstract
class
Primitive
implements
ItoCSG
{
45
ArrayList<Parameter> parametrics=
new
ArrayList<>();
46
47
56
public
abstract
List<Polygon>
toPolygons
();
57
63
public
CSG
toCSG
() {
64
CSG
tmp =
CSG
.
fromPolygons
(
getProperties
(),
toPolygons
());
65
if
(parametrics!=
null
)
66
for
(
Parameter
p:parametrics)
67
tmp.
setParameter
(p);
68
return
tmp;
69
}
70
75
public
abstract
PropertyStorage
getProperties
();
76
}
eu.mihosoft.vrl.v3d.CSG
Definition:
CSG.java:109
eu.mihosoft.vrl.v3d.CSG.setParameter
CSG setParameter(Parameter w, IParametric function)
Definition:
CSG.java:2240
eu.mihosoft.vrl.v3d.CSG.fromPolygons
static CSG fromPolygons(List< Polygon > polygons)
Definition:
CSG.java:621
eu.mihosoft.vrl.v3d.Primitive
Definition:
Primitive.java:44
eu.mihosoft.vrl.v3d.Primitive.getProperties
abstract PropertyStorage getProperties()
eu.mihosoft.vrl.v3d.Primitive.toPolygons
abstract List< Polygon > toPolygons()
eu.mihosoft.vrl.v3d.Primitive.toCSG
CSG toCSG()
Definition:
Primitive.java:63
eu.mihosoft.vrl.v3d.PropertyStorage
Definition:
PropertyStorage.java:47
eu.mihosoft.vrl.v3d.parametrics.Parameter
Definition:
Parameter.java:5
eu.mihosoft.vrl.v3d.ItoCSG
Definition:
ItoCSG.java:3
Generated by
1.9.1