STLExportOptions.meshRefinement Property

Parent Object: STLExportOptions
Defined in namespace "adsk::fusion" and the header file is <Fusion/Fusion/STLExportOptions.h>

Description

Gets and sets the current simple mesh refinement settings. Setting this property will reset the surfaceDeviation, normalDeviation, maximumEdgeLength, and aspectRatio to values that correspond to the specified mesh refinement. The default is MeshRefinementMedium.

Syntax

"sTLExportOptions_var" is a variable referencing a STLExportOptions object.
# Get the value of the property.
propertyValue = sTLExportOptions_var.meshRefinement

# Set the value of the property.
sTLExportOptions_var.meshRefinement = propertyValue
"sTLExportOptions_var" Is a variable referencing a STLExportOptions Object.
#include <Fusion/Fusion/STLExportOptions.h>

// Get the value of the property.
MeshRefinementSettings propertyValue = sTLExportOptions_var->meshRefinement();

// Set the value of the property, where value_var is a MeshRefinementSettings.
bool returnValue = sTLExportOptions_var->meshRefinement(value_var);
"sTLExportOptions_var" Is a variable referencing a STLExportOptions Object.
// Get the value of the property.
propertyValue = sTLExportOptions_var.meshRefinement;

// Set the value of the property.
sTLExportOptions_var.meshRefinement = propertyValue;

Property Value

This is a read/write property whose value is a MeshRefinementSettings.

Samples

Name Description
Export to other formats API Sample

Demonstrates exporting the active design to IGES, STEP, SAT, SMT, F3D, and STL formats.

Before running: Have a design open in the DESIGN workspace. Run the script from Scripts and Add-Ins. It writes translated files to a temporary directory and shows that path in a message box.

Version

Introduced in version January 2015