Trim

Purpose

To trim a surface while retaining specified regions of the surface and discarding others.

How to Use

  1. Select Trim from the Trim cascading menu, or click this icon.

    If a single surface is active, that surface is considered to be the target surface for trimming. If more than one surface is active, then all active geometry is automatically deselected and the system prompts:

    Select a target surface to trim.

  2. Click directly on any boundary or interior isoparm of the surface that you want to trim. The active surface is then validated to ensure that it meets the conditions for trimming. To meet the conditions for trimming, at least one curve on surface element must be present on a selected surface.
If there is no curve on surface element present on the selected surface, the system displays the error message:

Surface selected has no curves on surface.
Select another surface.
In this case, the system prompts you again to select a target surface to trim.

When a surface is validated for trimming, a small Go icon appears in the lower right corner of the current window, and the system prompts:

Select the REGIONS of the surface TO KEEP, or the GO button.

  • Click directly on an area of the surface that clearly defines the first region or area of the surface that you want to keep. A set of crosshair locators appear on the surface that intersect at the selection point on the surface. The intersection point of the two locators defines the region of the surface to keep.

    If the intersection point of the crosshair locator set is incorrect, you can use the mouse to interactively position the locators anywhere on the surface.

  • You can place additional crosshair locators as needed to define multiple regions of the surface (as shown in the following illustration). One set of locators defines the main body of the cylinder, while a second set of locators defines the inner surface area of the letter "A."

    When multiple locators are used on a surface, each set of locators can be independently selected by clicking directly on one member of the locator set to be manipulated. The selected crosshair set then becomes active and can be interactively repositioned to define an alternate region.

  • When the necessary region locators have been placed to define the areas of the surface you want to keep, click the Go icon in the lower right area of the window. The system displays a message indicating that it is trimming. The actual trimming procedure can take from a few seconds to a few minutes depending on the complexity of the surface and curves involved.

    When the trimming is complete, the previously defined regions of the surface to keep are retained, and all other surface areas discarded.

    Notes:

    Trim Options

    Select Trim- or double-click the icon to display the Trim Options box.

    Shrink Surface

    This toggle is used to shrink the underlying surface's UV domain to just cover the retained regions. This permanently changes the surface geometry and cannot be restored by untrimming.

    If Your Surface Won't Trim

    In some cases, certain areas of the target surface may not trim. This occurs if a curve on surface used in the trim procedure is not a closed curve or a curve on surface does not clearly define a region on the surface.

    If a curve on surface is not a closed curve, use Object Edit Close to close curves. The trim operation will attempt to join curves which are within the tolerance End gap allowed between curves. (see Construction Settings for trimming for details).

    If the curve on surface element does not clearly define a surface region and if the curves on surface are with the End gap allowed between curves distance of a surface boundary an attempt will be made to form a closed region.

    Note: Partial trim curves that are situated on opposite sides of a seam of a closed target surface requires special handling. Instead of attaching partial curves, pick and move the edit points at the end of the curve until they touch or overlap the seam. The trim operation can then be completed successfully.

    Tolerances for Trim

    The following shows the section of the Construction Settings window (Preferences Construction settings-in which you set trimming tolerances.

    Trim Curve Fit

    The default is 0.001. Use a smaller value to achieve more accurate trim boundaries. A larger value has no effect.

    End Gap Allowed Between Curves

    The default is 0.1. This is the largest allowable gap between the end points of this curve on surface and another to be considered closed in determining a trim region. A larger value allows larger gaps. This tolerance is also considered when a curve on surface end is close to a surface boundary.

    Working with an Invisible curve on surface

    If a curve on surface is toggled invisible, the system does not recognize the curve as present and will not validate the surface for trimming. Any curve on surface element that you want to use in a Trim operation must be visible when you invoke the Trim function.

    Working with a Dashed Line Style curve on surface

    By default, a dashed line curve on surface element is a valid element in a Trim operation. If you want to disallow dashed curve on surface elements from being used in a Trim operation, an Environment variable must be set in your Preferences file.

    Select Preferences Edit Alias preferences, open the Modeling Options section, open the Trim Options section, and set the Trim dashed Cos option to on. When set to on, dashed lines are ignored in a trim operation.

    For more information on line styles, see Object Display Line style-.

    Related Issues

    A curve on surface element can be selected using Pick Object Types Curve on surf. Once selected, you can use Xform Move to translate the curve anywhere on the surface.

    A curve on surface element can be moved entirely off of the associated surface. Since a curve on surface element is mapped only to the UV parameter space of a surface, once the curve or any portion of the curve is moved off the surface the portion that was moved will no longer be displayed. If the only curve on surface element on a surface has been moved off the surface entirely, the surface will not be validated as a valid surface for trimming. See the following DAG node structure in the SBD window.

    To move a curve on surface element back onto the surface where it will be visually mapped in UV parameter space, select Pick Objects Types Curve on surf and pick the curve by selecting the appropriate DAG node from the SBD window.

    When the curve is selected, use Xform Move. The system prompts:

    Enter Move amounts (x, y, z) ABS:
    Make sure that the system is currently addressing in Absolute mode and type the move values of 0, 0, 0. The curve element is then moved back to its original point of origin. Similarly, if an edit point on a curve on surface element is moved off the surface, the edit point and curve spans affected by that edit point are no longer displayed.

    To select the edit point that has been moved off of the surface:

    Trim divide

    Purpose

    To divide a surface into multiple surface regions, as defined by a curve on surface or a series of such curves. Although similar to the regular Trim function, Trim divide retains all surface areas.

    How to Use

    1. Select Trim divide from the Trim cascading menu, or click this icon.

      If a single surface element is active, that surface is considered to be the target surface for trimming. If more than one surface element is active, then all active geometry is automatically deselected and the system prompts:

      Select a target surface to divide.

    2. Click on any boundary or interior isoparm of the surface that you want to divide.
    The active surface is validated to ensure that it meets the conditions for division. To meet the conditions for division, at least one curve on surface element must be present on the selected surface.

    If there is no curve on surface element present on the selected surface, the system displays the error message:

    Surface selected has no curves on surface.
    Select another surface.
    In this case, the system prompts you again to select a target surface to divide.

    When the surface is validated for division, a small Go icon appears in the lower right corner of the window and the system prompts:

    Select the Regions of the surface to divide

  • Click on an area of the surface that clearly defines the first region or area of the surface that you want to divide from the rest of the surface area. A set of crosshair locators appear on the surface that intersect at the selection point on the surface. The intersection of two locators defines the region or area of the surface that is to be divided from the rest of the surface area.

    If the intersection point of the crosshair locators is incorrect, you can use the mouse to interactively position the locators anywhere on the surface.

    Defining Multiple Regions

    You can place additional locators as necessary to define multiple regions of the surface to be divided.

    Note: In the following example, the curve on surface elements are represented by the broken lines and the crosshair locators are shortened for illustrative purposes.

    The inner circle and the two lower corners have been defined by the crosshair locators as the areas of the surface to be divided. The two curve on surface elements near the upper corners of the surface are disregarded and play no role in the division process, as these two corner regions have not been defined by a set of locators.

    When multiple locators are used on a surface, each set of locators can be independently selected by clicking directly on one member of the locator set to be manipulated. The crosshair set then becomes active and can be interactively repositioned to define an alternate region.

    When the necessary region locators have been placed to define each area of the surface to be divided, click the Go icon in the lower right corner of the active window.

    When the Go icon has been selected, the system displays a prompt indicating that it is dividing the surface. The actual division process can take from a few seconds, to a few minutes, depending on the complexity of the surface and curves involved.

    When the division process is complete, each of the defined regions of the surface become independent surfaces.

    Note: When a surface is divided, the system creates surface elements that total one more than the number of locators placed, unless the number of locators placed is equal to the number of surface regions. In the next example, there is now a total of four surfaces.

    Until you divide a surface, the complete surface and all curve on surface elements are displayed. When the surface has been divided, any curve on surface elements involved in the division process are no longer displayed but still exist on the original surface. Any curve on surface elements that were not associated with the division process are still displayed.

    For more information, see also Surface Edit Trim Untrim.

    Note: Divided surfaces cannot be attached to or aligned with other surfaces. If surfaces must be attached to or aligned with other surfaces, use Object Edit Attach before the surface division.

    Divide Options

    Select Trim divide- or double-click the icon to display the Divide Options box.

    Shrink Surface

    Used to shrink the underlying surface's UV domain to just cover the retained regions. This permanently changes the surface geometry and cannot be restored by untrimming.

    Untrim

    Purpose

    To undo a previous Trim or Trim divide operation.

    Overview

    When a trimmed, or trim-divided surface is untrimmed, all regions of the surface that where previously trimmed away are re-displayed unless the Shrink Surface option was originally used in trimming the surface (Surface Edit Trim Trim-). The Shrink Surface option irreversibly cuts away portions of the surface that cannot be re-displayed. All associated curve on surface elements are also re-displayed.

    How to Use

    1. Select the surfaces that you want to untrim ensuring that they are active before invoking the function.

    2. Select Untrim from the Trim cascading menu, or click this icon.

      Once the function is invoked, any active trimmed surfaces are untrimmed.

      If any surface element that is active at the time the function is invoked is an element of a group, the system displays the error message:

      Cannot untrim grouped objects. Select surfaces at the Component level.
      In response to this prompt, reselect the surfaces that you want to untrim. Ensure that any surface elements that are part of a group are selected at the component level by using Pick Component or by picking the component elements through the SBD window.

      Once the surfaces are correctly selected, the Untrim function can be invoked again.

      The Untrim function is a continuous function. Therefore, after all the active surfaces have been untrimmed, they are deselected and the system prompts:

      Select a TRIMMED surface to untrim

    Untrim Options

    Select Untrim- or double-click the icon to display the Untrim Options box.

    Untrim Stages

    Last each trim operation is recorded in the surfaces data structures to allow returning to previous states of each surface and the changes from the last trim operation are removed. For example, if a surface had been trimmed three times, after setting this option the result will be as if had only been trimmed using the first two operations.
    All remove all trimming information from the surface. All curves on surface are made visible again.





    aliasdocs@aw.sgi.com
    Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.