# A3DRWParamsExportStlData

struct `A3DRWParamsExportStlData`

  Specifies parameters used to write the model file to STL format.

  ## Index

  Variables

  - `m_bBinaryFile`
  - `m_eTessellationLevelOfDetail`
  - `m_dChordHeightRatio`
  - `m_dAngleToleranceDeg`
  - `m_dMinimalTriangleAngleDeg`
  - `m_dMaxChordHeight`
  - `m_bAccurateTessellation`
  - `m_bAccurateTessellationWithGrid`
  - `m_dAccurateTessellationWithGridMaximumStitchLength`
  - `m_bAccurateSurfaceCurvatures`
  - `m_bKeepCurrentTessellation`
  - `m_bUseHeightInsteadOfRatio`
  - `m_dMaximalTriangleEdgeLength`
  - `m_eExportUnit`

Variables

A3DBool `A3DRWParamsExportStlData.``m_bBinaryFile`
  `A3DBool`

  With a value of `A3D_TRUE`, compresses the STL file to reduce file size.

A3DETessellationLevelOfDetail `A3DRWParamsExportStlData.``m_eTessellationLevelOfDetail`
  `A3DETessellationLevelOfDetail`

  Enum to specify predefined values for some following members.

A3DDouble `A3DRWParamsExportStlData.``m_dChordHeightRatio`
  `A3DDouble`

  Specifies the ratio of the diagonal length of the bounding box to the chord height.

  A value of 50 means that the diagonal of the bounding box is 50 times greater than the chord height. Values can range from 50 to 10,000. Higher values will generate more accurate tessellation.

A3DDouble `A3DRWParamsExportStlData.``m_dAngleToleranceDeg`
  `A3DDouble`

  Specifies the maximum angle between two contiguous segments of wire edges for every face.

  The value must be from 10 through 40.

A3DDouble `A3DRWParamsExportStlData.``m_dMinimalTriangleAngleDeg`
  `A3DDouble`

  Specifies the angle between two contiguous segments of wire edges for every face.

  Allowable values range from 10 through 30.

A3DDouble `A3DRWParamsExportStlData.``m_dMaxChordHeight`
  `A3DDouble`

  Specifies the maximum distance between the original geometric surface specified in the CAD file and the resulting tessellation.

  Be careful, very small values can generate very large tessellation files. Conversely, very large values can generate inaccurate tessellation. In such cases, it may be better to use the `m_dChordHeightRatio`member to scale this value relative to the object that’s being tessellated.

  > `m_dMaxChordHeight`is ignored if `m_bUseHeightInsteadOfRatio`isn’t set to `A3D_TRUE`.

A3DBool `A3DRWParamsExportStlData.``m_bAccurateTessellation`
  `A3DBool`

  Accurate tessellation.

  Uses standard parameters. `A3D_FALSE`indicates the tessellation is set for visualization. Setting this value to `A3D_TRUE`will generate tessellation more suited for analysis. Can be used with all TessellationLevelOfDetails.

A3DBool `A3DRWParamsExportStlData.``m_bAccurateTessellationWithGrid`
  `A3DBool`

  Accurate tessellation with faces inner points on a grid.

A3DDouble `A3DRWParamsExportStlData.``m_dAccurateTessellationWithGridMaximumStitchLength`
  `A3DDouble`

  Maximal grid stitch length.

  Disabled if value is 0. Be careful, a too small value can generate a huge tessellation.

A3DBool `A3DRWParamsExportStlData.``m_bAccurateSurfaceCurvatures`
  `A3DBool`

  Takes into account surfaces curvature in accurate tessellation to control triangles elongation directions.

  Enable `m_bAccurateTessellation`or `m_bAccurateTessellationWithGrid`to use this option.

A3DBool `A3DRWParamsExportStlData.``m_bKeepCurrentTessellation`
  `A3DBool`

  With a value of `A3D_TRUE`, keeps the current tessellation.

A3DBool `A3DRWParamsExportStlData.``m_bUseHeightInsteadOfRatio`
  `A3DBool`

  Use `m_dMaxChordHeight`instead of `m_dChordHeightRatio`if `m_eTessellationLevelOfDetail`= `kA3DTessLODUserDefined`.

A3DDouble `A3DRWParamsExportStlData.``m_dMaximalTriangleEdgeLength`
  `A3DDouble`

  Maximal length of the edges of triangles.

  Disabled if value is 0. Be careful, a too small value can generate a huge tessellation.

A3DEUnits `A3DRWParamsExportStlData.``m_eExportUnit`
  `A3DEUnits`

  Unit of the exported model.

  STL files have no unit however this value allow you to define it. This scales the model to match the target unit. Default value is set to kA3DUnitMillimeter. Setting to kA3DUnitUnknown keeps the original unit.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...