OpenCascade.js
API ReferenceModelingAlgorithmsTKFeat

LocOpe

OCCT package LocOpe: LocOpe, LocOpe_BuildShape, LocOpe_BuildWires, LocOpe_DPrism, and 15 more bound classes.

LocOpe

Provides tools to implement local topological operations on a shape.

Constructors(1)

Static methods(4)

LocOpe_DPrism

Defines a pipe (near from Pipe from BRepFill), with modifications provided for the Pipe feature.

Constructors(2)

Instance methods(9)

LocOpe_GeneratedShape

Static methods(2)

Instance methods(5)

LocOpe_Generator

Constructors(2)

Instance methods(6)

LocOpe_GluedShape

Constructors(2)

Static methods(2)

Instance methods(7)

LocOpe_Gluer

Constructors(2)

Instance methods(12)

LocOpe_LinearForm

Defines a linear form (using Prism from BRepSweep) with modifications provided for the LinearForm feature.

Constructors(3)

Instance methods(6)

LocOpe_Pipe

Defines a pipe (near from Pipe from BRepFill), with modifications provided for the Pipe feature.

Constructors(1)

Instance methods(8)

LocOpe_Prism

Defines a prism (using Prism from BRepSweep) with modifications provided for the Prism feature.

Constructors(3)

Instance methods(8)

LocOpe_SplitDrafts

This class provides a tool to realize the following operations on a shape:

  • split a face of the shape with a wire,
  • put draft angle on both side of the wire. For each side, the draft angle may be different.

Constructors(2)

Instance methods(7)

  • Init(S: TopoDS_Shape): void

    Initializes the algorithm with the shape .

    Parameters (1)
    • S
  • Perform(F: TopoDS_Face, W: TopoDS_Wire, Extractg: gp_Dir, NPlg: gp_Pln, Angleg: number, Extractd: gp_Dir, NPld: gp_Pln, Angled: number, ModifyLeft: boolean, ModifyRight: boolean): void

    Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face.
    Puts a draft angle on both parts of the wire. <Extractg>, <Nplg>, <Angleg> define the arguments for the left part of the wire. <Extractd>, <Npld>, <Angled> define the arguments for the right part of the wire.
    The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle. If <ModifyLeft> is set to <false>, no draft angle is applied to the left part of the wire. If <ModifyRight> is set to <false>,no draft angle is applied to the right part of the wire.

    Parameters (10)
    • F
    • W
    • Extractg
    • NPlg
    • Angleg
    • Extractd
    • NPld
    • Angled
    • ModifyLeft
    • ModifyRight
  • Perform(F: TopoDS_Face, W: TopoDS_Wire, Extract: gp_Dir, NPl: gp_Pln, Angle: number): void

    Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face. Puts a draft angle on the left part of the wire. The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle.

    Parameters (5)
    • F
    • W
    • Extract
    • NPl
    • Angle
  • IsDone(): boolean

    Returns <true> if the modification has been successfully performed.

  • Returns the modified shape.

  • Manages the descendant shapes.

    Parameters (1)
    • S

LocOpe_Spliter

Constructors(2)

Instance methods(8)

LocOpe_SplitShape

Provides a tool to cut:

  • edges with a vertices,
  • faces with wires, and rebuilds the shape containing the edges and the faces.

Constructors(2)

Instance methods(8)

LocOpe_WiresOnShape

Constructors(1)

Static methods(2)

Instance methods(20)

  • Init(S: TopoDS_Shape): void
    Parameters (1)
    • S
  • Add splitting edges or wires for whole initial shape without additional specification edge->face, edge->edge This method puts edge on the corresponding faces from initial shape.

    Parameters (1)
    • theEdges
  • SetCheckInterior(ToCheckInterior: boolean): void

    Set the flag of check internal intersections default value is True (to check).

    Parameters (1)
    • ToCheckInterior
  • Parameters (2)
    • W
    • F
  • Parameters (2)
    • Comp
    • F
  • Parameters (2)
    • E
    • F
  • Bind(EfromW: TopoDS_Edge, EonFace: TopoDS_Edge): void
    Parameters (2)
    • EfromW
    • EonFace
  • BindAll(): void
  • IsDone(): boolean
  • MoreEdge(): boolean
  • Returns the face of the shape on which the current edge is projected.

  • OnEdge(E: TopoDS_Edge): boolean

    If the current edge is projected on an edge, returns <true> and sets the value of <E>. Otherwise, returns <false>.

    Parameters (1)
    • E
      Mutated in place; read the updated value from this argument after the call.
  • OnEdge(V: TopoDS_Vertex, E: TopoDS_Edge, P: number): { returnValue: boolean; P: number }

    If the vertex <V> lies on an edge of the original shape, returns <true> and sets the concerned edge in <E>, and the parameter on the edge in.
    . Else returns <false>.

    Parameters (3)
    • V
    • E
      Mutated in place; read the updated value from this argument after the call.
    • P
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • P: updated value from the call.
  • OnEdge(V: TopoDS_Vertex, EdgeFrom: TopoDS_Edge, E: TopoDS_Edge, P: number): { returnValue: boolean; P: number }

    If the vertex <V> lies on an edge of the original shape, returns <true> and sets the concerned edge in <E>, and the parameter on the edge in.
    . Else returns <false>.

    Parameters (4)
    • V
    • EdgeFrom
    • E
      Mutated in place; read the updated value from this argument after the call.
    • P
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • P: updated value from the call.
  • NextEdge(): void
  • OnVertex(Vwire: TopoDS_Vertex, Vshape: TopoDS_Vertex): boolean
    Parameters (2)
    • Vwire
    • Vshape
  • tells is the face to be split by section or not

    Parameters (1)
    • aFace