JavaCAD
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() {
65  if(parametrics!=null)
66  for(Parameter p:parametrics)
67  tmp.setParameter(p);
68  return tmp;
69  }
70 
75  public abstract PropertyStorage getProperties();
76 }
CSG setParameter(Parameter w, IParametric function)
Definition: CSG.java:2240
static CSG fromPolygons(List< Polygon > polygons)
Definition: CSG.java:621
abstract PropertyStorage getProperties()
abstract List< Polygon > toPolygons()