-
Notifications
You must be signed in to change notification settings - Fork 271
Export parameters by CAD format
Long name of this format is STEP(ISO 10303).
Writting files of this format is provided by class Mayo::IO::OccStepWriter
Key | Type | Default value |
---|---|---|
schema |
Enumeration |
AP214_IS |
Version of schema used for the output STEP file
List of enumerated values:
-
AP214_CD
-
AP214_DIS
-
AP203
-
AP214_IS
-
AP242_DIS
Key | Type | Default value |
---|---|---|
lengthUnit |
Enumeration |
Millimeter |
Defines a unit in which the STEP file should be written. If set to unit other than millimeter, the model is converted to these units during the translation
List of enumerated values:
-
Undefined
-
Micrometer
-
Millimeter
-
Centimeter
-
Meter
-
Kilometer
-
Inch
-
Foot
-
Mile
Key | Type | Default value |
---|---|---|
assemblyMode |
Enumeration |
Auto |
No description
List of enumerated values:
-
Skip
-
Write
-
Auto
Key | Type | Default value |
---|---|---|
freeVertexMode |
Enumeration |
Compound |
Parameter to write all free vertices in one SDR (name and style of vertex are lost) or each vertex in its own SDR (name and style of vertex are exported)
List of enumerated values:
-
Compound
- All free vertices are united into one compound and exported in one shape definition representation (vertex name and style are lost) -
Single
- Each vertex is exported in its ownSHAPE DEFINITION REPRESENTATION
(vertex name and style are not lost, but the STEP file size increases)
Key | Type | Default value |
---|---|---|
writeParametericCurves |
Bool |
true |
Indicates whether parametric curves (curves in parametric space of surface) should be written into the STEP file.
It can be disabled in order to minimize the size of the resulting file.
Key | Type | Default value |
---|---|---|
writeSubShapesNames |
Bool |
false |
Indicates whether to write sub-shape names to 'Name' attributes of STEP Representation Items
Key | Type | Default value |
---|---|---|
headerAuthor |
String |
Author attribute in STEP header
Key | Type | Default value |
---|---|---|
headerOrganization |
String |
Organization(of author) attribute in STEP header
Key | Type | Default value |
---|---|---|
headerOriginatingSystem |
String |
Open CASCADE 7.6 |
Originating system attribute in STEP header
Key | Type | Default value |
---|---|---|
headerDescription |
String |
OpenCascade Model |
Description attribute in STEP header
Long name of this format is IGES(ASME Y14.26M).
Writting files of this format is provided by class Mayo::IO::OccIgesWriter
Key | Type | Default value |
---|---|---|
brepMode |
Enumeration |
Faces |
No description
List of enumerated values:
-
Faces
- OpenCascade TopoDS_Faces will be translated into IGES 144 (Trimmed Surface) entities, no BRep entities will be written to the IGES file -
BRep
- OpenCascade TopoDS_Faces will be translated into IGES 510 (Face) entities, the IGES file will contain BRep entities
Key | Type | Default value |
---|---|---|
planeMode |
Enumeration |
Plane |
Indicates if planes should be saved as Bsplines or Planes (type 108). Writing p-curves on planes is disabled
List of enumerated values:
-
Plane
-
BSpline
Key | Type | Default value |
---|---|---|
lengthUnit |
Enumeration |
Millimeter |
No description
List of enumerated values:
-
Undefined
-
Micrometer
-
Millimeter
-
Centimeter
-
Meter
-
Kilometer
-
Inch
-
Foot
-
Mile
Long name of this format is STL(STereo-Lithography).
Writting files of this format is provided by class Mayo::IO::OccStlWriter
Key | Type | Default value |
---|---|---|
targetFormat |
Enumeration |
Binary |
No description
List of enumerated values:
-
Ascii
-
Binary
Long name of this format is VRML(ISO/CEI 14772-2).
Writting files of this format is provided by class Mayo::IO::OccVrmlWriter
Key | Type | Default value |
---|---|---|
shapeRepresentation |
Enumeration |
BothRepresentation |
No description
List of enumerated values:
-
ShadedRepresentation
-
WireFrameRepresentation
-
BothRepresentation
Long name of this format is glTF(GL Transmission Format).
Writting files of this format is provided by class Mayo::IO::OccGltfWriter
Key | Type | Default value |
---|---|---|
coordinatesConverter |
Enumeration |
negZfwd_posYup |
Coordinate system transformation from OpenCascade to glTF
List of enumerated values:
-
Undefined
-
posYfwd_posZup
-
negZfwd_posYup
Key | Type | Default value |
---|---|---|
transformationFormat |
Enumeration |
Compact |
Preferred transformation format for writing into glTF file
List of enumerated values:
-
Compact
- Automatically choose most compact representation between Mat4 and TRS -
Mat4
- 4x4 transformation matrix -
TRS
- Transformation decomposed into Translation vector, Rotation quaternion and Scale factor(T * R * S)
Key | Type | Default value |
---|---|---|
format |
Enumeration |
Binary |
No description
List of enumerated values:
-
Json
-
Binary
Key | Type | Default value |
---|---|---|
forceExportUV |
Bool |
false |
Export UV coordinates even if there is no mapped texture
Key | Type | Default value |
---|---|---|
nodeNameFormat |
Enumeration |
ProductOrInstance |
Name format for exporting nodes
List of enumerated values:
-
Empty
-
Product
-
Instance
-
InstanceOrProduct
-
ProductOrInstance
-
ProductAndInstance
Key | Type | Default value |
---|---|---|
meshNameFormat |
Enumeration |
Product |
Name format for exporting meshes
List of enumerated values:
-
Empty
-
Product
-
Instance
-
InstanceOrProduct
-
ProductOrInstance
-
ProductAndInstance
Key | Type | Default value |
---|---|---|
embedTextures |
Bool |
true |
Write image textures into target file.
If set to false
then texture images will be written as separate files.
Applicable only if option Format
is set to Binary
Key | Type | Default value |
---|---|---|
mergeFaces |
Bool |
false |
Merge faces within a single part.
May reduce JSON size thanks to smaller number of primitive arrays
Key | Type | Default value |
---|---|---|
keepIndices16b |
Bool |
false |
Prefer keeping 16-bit indexes while merging face.
May reduce binary data size thanks to smaller triangle indexes.
Applicable only if option Merge Faces
is on
Long name of this format is Wavefront OBJ.
Writting files of this format is provided by class Mayo::IO::OccObjWriter
Key | Type | Default value |
---|---|---|
coordinatesConverter |
Enumeration |
negZfwd_posYup |
Coordinate system transformation from OpenCascade to OBJ
List of enumerated values:
-
Undefined
-
posYfwd_posZup
-
negZfwd_posYup
Long name of this format is Additive manufacturing file format(ISO/ASTM 52915:2016).
Writting files of this format is provided by class Mayo::IO::GmioAmfWriter
Key | Type | Default value |
---|---|---|
float64Format |
Enumeration |
Decimal |
Format used when writting double
values as strings
List of enumerated values:
-
Decimal
- Decimal floating point(ex: 392.65) -
Scientific
- Scientific notation(ex: 3.9265E+2) -
Shortest
- Use the shortest representation: decimal or scientific
Key | Type | Default value |
---|---|---|
float64Precision |
Int |
16 |
Maximum number of significant digits when writting double
values
Key | Type | Default value |
---|---|---|
createZipArchive |
Bool |
false |
Write AMF document in ZIP archive containing one file entry
Key | Type | Default value |
---|---|---|
zipEntryFilename |
String |
Filename of the single AMF entry within the ZIP archive.
Only applicable if option Create ZIP Archive
is on
Key | Type | Default value |
---|---|---|
useZip64 |
Bool |
true |
Use the ZIP64 format extensions.
Only applicable if option Create ZIP Archive
is on
Writting files of this format is provided by class Mayo::IO::ImageWriter
Key | Type | Default value |
---|---|---|
width |
Int |
128 |
Image width in pixels
Key | Type | Default value |
---|---|---|
height |
Int |
128 |
Image height in pixels
Key | Type | Default value |
---|---|---|
backgroundColor |
RGB Color |
#000000 |
No description
Key | Type | Default value |
---|---|---|
cameraOrientation |
3D Vector |
1, -1, 1 |
Camera orientation expressed in Z-up convention as a unit vector
Key | Type | Default value |
---|---|---|
cameraProjection |
Enumeration |
Orthographic |
No description
List of enumerated values:
-
Perspective
-
Orthographic