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);

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. To run this sample, have a design open and run the script. It will write out the translated files to a temp directory, which will it show in a message box.

Version

Introduced in version January 2015