Enum GeometryFormat3D
- All Implemented Interfaces:
Serializable
,Comparable<GeometryFormat3D>
,java.lang.constant.Constable
,GeometryFormat
Enum containing 3D geometry formats supported internally by Apache Commons Geometry.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue 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.Value representing the OBJ file format.Value representing the STL file format in both the text (i.e.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. -
Field Summary
FieldsModifier and TypeFieldDescriptionList of file extensions associated with the format. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
GeometryFormat3D
(String fileExt) Construct a new instance with the given file extension. -
Method Summary
Modifier and TypeMethodDescriptionGet the default file extension used by the format.Get all file extensions associated with the format, including thedefault
.Get the format name.static GeometryFormat3D
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.
-
Enum Constant Details
-
OBJ
Value representing the OBJ file format.- See Also:
-
STL
Value representing the STL file format in both the text (i.e. "ASCII") and binary forms.- See Also:
-
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. whitespace, commas, semicolons, etc). Each line follows the patternp1x 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.
- See Also:
-
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. This format is a subset of theTXT
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.
- See Also:
-
-
Field Details
-
fileExtensions
List of file extensions associated with the format. The first file extension listed is taken as the default.
-
-
Constructor Details
-
GeometryFormat3D
Construct a new instance with the given file extension.- Parameters:
fileExt
- file extension
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getFormatName
Get the format name.- Specified by:
getFormatName
in interfaceGeometryFormat
- Returns:
- format name
-
getDefaultFileExtension
Get the default file extension used by the format.- Specified by:
getDefaultFileExtension
in interfaceGeometryFormat
- Returns:
- default file extension
-
getFileExtensions
Get all file extensions associated with the format, including thedefault
.- Specified by:
getFileExtensions
in interfaceGeometryFormat
- Returns:
- all file extensions associated with the format
-