public class BinaryStlFacetDefinition extends SimpleFacetDefinition
Constructor and Description |
---|
BinaryStlFacetDefinition(List<Vector3D> vertices,
Vector3D normal,
int attributeValue)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getAttributeValue()
Get the 2-byte attribute value (known as the "attribute byte count") stored at the end of the STL
facet definition binary representation.
|
getNormal, getVertices, toString
public BinaryStlFacetDefinition(List<Vector3D> vertices, Vector3D normal, int attributeValue)
vertices
- facet verticesnormal
- facet normalattributeValue
- 2-byte attribute valuepublic int getAttributeValue()
The bytes are stored with the first byte in the upper portion (bits 8-15) of the int and the second byte in the lower portion (bits 0-7).
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.