Provides access to all the Trims in a Brep object

Constructors

Properties

count: number

Gets the number of brep trims.

Methods

  • Add a new trim that will be part of an inner, outer, or slit loop to the brep.

    You should set the trim's Tolerance, TrimType, and IsoStatus values. In general, you should try to use the Add( edge, bRev3d, loop, c2i ) version of NewTrim. If you want to add a singular trim, use AddSingularTrim. If you want to add a curve-on-surface trim, use AddCurveOnFace. If you want to add a point-on-surface trim, use AddPointOnFace.

    Parameters

    • curve2dIndex: number

      index of 2d trimming curve

    Returns BrepTrim

    New Trim

  • Add a new trim that will be part of an inner, outer, or slit loop to the brep.

    Parameters

    • edge: BrepEdge

      3d edge associated with this trim

    • rev3d: boolean

      true if the edge and trim have opposite directions

    • loop: BrepLoop

      trim is appended to this loop

    • curve2dIndex: number

      index of 2d trimming curve

    Returns BrepTrim

    new trim

  • Add a new trim that will be part of an inner, outer, or slit loop to the brep

    Parameters

    • rev3d: boolean

      true if the edge and trim have opposite directions

    • edge: BrepEdge

      3d edge associated with this trim

    • curve2dIndex: number

      index of 2d trimming curve

    Returns BrepTrim

    new trim

  • Add a new trim that will be part of an inner, outer, or slit loop to the brep

    Parameters

    • rev3d: boolean

      true if the edge and trim have opposite directions

    • loop: BrepLoop

      trim is appended to this loop

    • curve2dIndex: number

      index of 2d trimming curve

    Returns BrepTrim

    new trim

  • Add a new curve on face to the brep

    You should set the trim's tolerance and iso values.

    Parameters

    • face: BrepFace

      face that curve lies on

    • edge: BrepEdge

      3d edge associated with this curve on surface

    • rev3d: boolean

      true if the 3d edge and the 2d parameter space curve have opposite directions.

    • curve2dIndex: number

      index of 2d curve in face's parameter space

    Returns BrepTrim

    new trim that represents the curve on surface

  • Add a new singular trim to the brep.

    Parameters

    • vertex: BrepVertex

      vertex along collapsed surface edge

    • loop: BrepLoop

      trim is appended to this loop

    • iso: IsoStatus
    • curve2dIndex: number

      index of 2d trimming curve

    Returns BrepTrim

    new trim

  • The item at index (Python: x[index]).

    Parameters

    • index: number

    Returns BrepTrim

  • Matches the endpoints of all trims in the Brep.

    Returns boolean

    true if any trim's 2d curve is changed, false otherwise.