trim attribute

Syntax

  • bool trim.{horizontal | vertical}

Description

The trim attribute consists of a two booleans. It is used to control the application of trim planes to the current shape and its successors. Classification of the trim planes depends on the orientation of the edge which was used to define the trim plane (i.e. the shared edge between two pre-component split faces): if the angle to the xz-plane of the pivot is less than 40 degrees, the trim plane is horizontal, otherwise vertical. Set the attribute to enable or disable the trim planes in horizontal or vertical direction.

Classification of a trim plane depends on the angle between the ''generating'' edge (pink) and the xz plane of the pivot.

Classification of trim planes
Note:

Horizontal trim planes are disabled by default. To enable them, use set(trim.horizontal, true).

Related

Examples

Vertical trim planes

Vertical trim planes are enabled by default.

Roof--> 
    roofHip(45)
    comp(f) { all : Face. }
Vertical trim planes are enabled by default.

Horizontal trim planes

Horizontal trim planes are enabled by switching the trim plane attribute.

Roof--> 
    roofHip(45)
    set(trim.horizontal, true)
    set(trim.vertical, false)
    comp(f) { all : Face. }
Horizontal trim planes are enabled by switching the trim plane attribute.

In this topic