public enum GeometryFormat3D extends Enum<GeometryFormat3D> implements GeometryFormat
Enum Constant and Description |
---|
CSV
Value representing a simple, non-standard CSV geometry format that defines triangular facets
one per line by listing the facet vertex coordinates in order, separated by commas.
|
OBJ
Value representing the OBJ file format.
|
STL
Value representing the STL file format in both the text (i.e.
|
TXT
Value representing a simple, non-standard text geometry format that defines facets one per line
by listing the coordinates of the facet vertices in order, separated by non-numeric characters (e.g.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultFileExtension() |
List<String> |
getFileExtensions() |
String |
getFormatName() |
static GeometryFormat3D |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeometryFormat3D[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeometryFormat3D OBJ
public static final GeometryFormat3D STL
public static final GeometryFormat3D TXT
p1x p1y p1z p2x p2y p2z p3x p3y p3z ...
where the p1 elements contain the coordinates of the first facet vertex, p2 those of the second, and so on. Facets may have 3 or more vertices and do not need to all have the same number of vertices.
This format is non-standard and no guarantees are made regarding its compatibility with other systems. It is intended primarily to provide a convenient, human-readable format for data input and analysis.
public static final GeometryFormat3D CSV
TXT
format with commas as separators and facets written as triangles (to ensure that
all rows have the same number of columns).
This format is non-standard and no guarantees are made regarding its compatibility with other systems. It is intended primarily to provide a convenient, human-readable format for data input and analysis.
public static GeometryFormat3D[] values()
for (GeometryFormat3D c : GeometryFormat3D.values()) System.out.println(c);
public static GeometryFormat3D valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getFormatName()
getFormatName
in interface GeometryFormat
public String getDefaultFileExtension()
getDefaultFileExtension
in interface GeometryFormat
public List<String> getFileExtensions()
getFileExtensions
in interface GeometryFormat
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.