public class ObjBoundaryWriteHandler3D extends AbstractBoundaryWriteHandler3D
BoundaryWriteHandler3D
implementation for writing OBJ content. Output is written using the UTF-8 charset by default.Constructor and Description |
---|
ObjBoundaryWriteHandler3D() |
Modifier and Type | Method and Description |
---|---|
Charset |
getDefaultCharset()
Get the text output default charset, used if the output does not
specify a charset.
|
DoubleFunction<String> |
getDoubleFormat()
Get the function used to convert double values to strings.
|
GeometryFormat |
getFormat() |
String |
getLineSeparator()
Get the line separator.
|
int |
getMeshBufferBatchSize()
Get the batch size when generating OBJ mesh content from facet sequences.
|
void |
setDefaultCharset(Charset charset)
Set the text output default charset, used if the output does not
specify a charset.
|
void |
setDoubleFormat(DoubleFunction<String> doubleFormat)
Set the function used to convert double values to strings.
|
void |
setLineSeparator(String lineSeparator)
Set the line separator.
|
void |
setMeshBufferBatchSize(int batchSize)
Set the batch size when generating OBJ mesh content from facet sequences.
|
void |
write(BoundarySource3D src,
GeometryOutput out) |
void |
write(Stream<? extends PlaneConvexSubset> boundaries,
GeometryOutput out)
Write all boundaries in the stream to the given output using the data format supported by this
instance.
|
void |
writeFacets(Stream<? extends FacetDefinition> facets,
GeometryOutput out)
Write all
facets in the stream to the output using the data format
supported by this instance. |
writeFacets
public ObjBoundaryWriteHandler3D()
public GeometryFormat getFormat()
public Charset getDefaultCharset()
public void setDefaultCharset(Charset charset)
charset
- text output default charsetpublic String getLineSeparator()
public void setLineSeparator(String lineSeparator)
lineSeparator
- the line separator to usepublic DoubleFunction<String> getDoubleFormat()
public void setDoubleFormat(DoubleFunction<String> doubleFormat)
doubleFormat
- double format functionpublic int getMeshBufferBatchSize()
-1
. Default value is .ObjWriter.meshBuffer(int)
public void setMeshBufferBatchSize(int batchSize)
-1
to allow unlimited buffer size. Default value is .batchSize
- mesh buffer batch size; set to -1
to allow unlimited buffer sizesObjWriter.meshBuffer(int)
public void write(BoundarySource3D src, GeometryOutput out)
write
in interface BoundaryWriteHandler<PlaneConvexSubset,BoundarySource3D>
write
in class AbstractBoundaryWriteHandler3D
public void write(Stream<? extends PlaneConvexSubset> boundaries, GeometryOutput out)
boundaries
- stream containing boundaries to writeout
- output to write topublic void writeFacets(Stream<? extends FacetDefinition> facets, GeometryOutput out)
facets
in the stream to the output using the data format
supported by this instance. The stream passed as an argument is not closed, meaning
that callers are responsible for closing the stream if necessary (for example, if the stream
fetches data from the file system).facets
- stream containing facets to writeout
- output to write toCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.