*setfacetfactor

Refines geometry graphical facets based on user settings.

Syntax

*setfacetfactor refine_max deviation_factor angle total

Type

HyperMesh Tcl Modify

Description

This command refines geometry graphical facets based on user settings.

Inputs

refine_max
The number of times facets should be refined. Valid values are:
  • -1 - Return to unrefined display and clear all refinement memory usage.
  • 0 - Return to unrefined display but do not clear memory.
  • > 0 - The number of times to refine the facets.
deviation_factor
A value between 0 and 1. The max chordal deviation of all facets is calculated. The chordal deviation of each facet from its surface will be calculated and if the deviation value is more than the tolerance*max chordal deviation, the facet will be refined.
angle
If the angle between the lines connecting the facet vertices and the max chordal deviation location for a facet exceed this value, the facet will be refined.
total
Ignores all other parameters and tries to refine the model to the specified number of total facets.

Examples

To refine facets based on a factor of 0.1 and an angle of 10:

*setfacetfactor 1 0.1 10 0

To refine facets based on a total of 500 facets:

*setfacetfactor 1 0.1 10 500

To clear memory and return to the unrefined display:

*setfacetfactor -1 0.1 10 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

11.0