public class Polyhedron extends Atomic3dModel
Represents a set of triangles. It is good to know that some operations - such as difference or intersection - are not always works perfectly with this object.
Modifier and Type | Field and Description |
---|---|
protected List<Triangle3d> |
triangles |
Constructor and Description |
---|
Polyhedron(List<Triangle3d> triangles)
Constructs the object with the given triangles.
|
Modifier and Type | Method and Description |
---|---|
protected Boundaries3d |
getModelBoundaries() |
protected Abstract3dModel |
innerCloneModel() |
protected SCAD |
innerToScad(IColorGenerationContext context)
Generates the OpenSCAD representation of the model without.
|
protected CSG |
toInnerCSG(FacetGenerationContext context) |
getChildrenModels, innerSubModel, isPrimitive
addModel, addModelTo, align, align, align, align, align, annotate, background, cloneModel, debug, findAnnotatedModel, getBoundaries, getTag, isBackground, isDebug, isMoved, isRotated, move, moves, moves, moves, moves, rotate, rotates, rotates, round, subModel, subtractModel, toCSG, toCSG, toScad, withTag
protected final List<Triangle3d> triangles
public Polyhedron(List<Triangle3d> triangles) throws IllegalValueException
triangles
- the triangles used to create this objectIllegalValueException
- thrown if the given list is emptyprotected Boundaries3d getModelBoundaries()
getModelBoundaries
in class Abstract3dModel
protected Abstract3dModel innerCloneModel()
innerCloneModel
in class Abstract3dModel
protected SCAD innerToScad(IColorGenerationContext context)
Abstract3dModel
innerToScad
in class Abstract3dModel
protected CSG toInnerCSG(FacetGenerationContext context)
toInnerCSG
in class Abstract3dModel
Copyright © 2014–2020, Printing in 3D. All rights reserved.