public class Facet extends Object
Immutable representation of one triangle in the mesh with a normal pointing outward from the object.
It is used internally by the STL output generation, you don't really have to use it directly.
Constructor and Description |
---|
Facet(Triangle3d triangle,
Coords3d normal,
Color color)
Creates a facet based on a triangle and a normal vector.
|
Modifier and Type | Method and Description |
---|---|
Coords3d |
getNormal()
Returns the normal of this facet.
|
Triangle3d |
getTriangle()
Returns the triangle within this facet.
|
List<Vertex> |
getVertexes()
Returns all the vertices this facet holds.
|
public Facet(Triangle3d triangle, Coords3d normal, Color color)
triangle
- the trianglenormal
- the normal vectorcolor
- the color of the facetpublic List<Vertex> getVertexes()
public Triangle3d getTriangle()
public Coords3d getNormal()
Copyright © 2014–2020, Printing in 3D. All rights reserved.