*delete_logo

Removes geometric logos.

Syntax

*delete_logomark_id max_height max_size concavity_factor

Type

HyperMesh Tcl Modify

Description

Removes small geometric features that represent company logos from the model design.

Inputs

mark_id
The ID of the mark containing the surfaces to consider for logo removal. Valid values are 1 and 2.
max_height
The maximuml height/depth of a letter in the logo, as measured normal to the "shiny" surface.
If a negative value is provided, the max height is auto-calculated based on the geometry dimensions.
max_size
The maximum size of a letter in the logo, as measured along/parallel to the "shiny" surface.
If a negative value is provided, the max size is auto-calculated based on the geometry dimensions.
concavity_factor
Creates a filter to provide more flexible control of automatic logo recognition. This is a heuristic tool and may remove real features (such as flat bottom round dimples) which are not intended for removal.
This is a quantitative measure of a letters' shape complexity, formally defined as (contour_accumulated_turn_angle/360)-1. The contour_accumulated_turn_angle is the sum of angles between a letters' contour straight parts. Curved parts of a contour letter are approximated by a segmented line composed of short straight segments. For completely concave contours (such as circles, quads and hexagons) the concavity factor is (360/360)-1=0.
To extend the recognition and removal of logos, this value should be reduced.

Examples

To remove logos from all surfaces, using a max size of 30.0, a max height of 1.1 and a concavity factor of 2.0:
*createmark surfs 1 all
*delete_logo 1 1.1 30.0 2.0
To remove logos from all surfaces, auto-calculating the max height and size:
*createmark surfs 1 all
*delete_logo 1 -1.0 -1.0 2.0

Errors

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