ShapeExtend
OCCT package ShapeExtend: ShapeExtend, ShapeExtend_BasicMsgRegistrator, ShapeExtend_ComplexCurve, ShapeExtend_CompositeSurface, and 5 more bound classes.
ShapeExtend
This package provides general tools and data structures common for other packages in SHAPEWORKS and extending CAS.CADE structures. The following items are provided by this package:
- enumeration Status used for coding status flags in methods inside the SHAPEWORKS
- enumeration Parametrisation used for setting global parametrisation on the composite surface
- class CompositeSurface representing a composite surface made of a grid of surface patches
- class WireData representing a wire in the form of ordered list of edges
- class MsgRegistrator for attaching messages to the objects
- tools for exploring the shapes
- tools for creating new shapes
Constructors(1)
Static methods(3)
- Init(): void
Inits using of
ShapeExtend. Currently, loads messages output by ShapeHealing algorithms. - EncodeStatus(status: ShapeExtend_Status): number
Encodes status (enumeration) to a bit flag.
Parameters (1)status
- DecodeStatus(flag: number, status: ShapeExtend_Status): boolean
Tells if a bit flag contains bit corresponding to enumerated status.
Parameters (2)flagstatus
ShapeExtend_BasicMsgRegistrator
Abstract class that can be used for attaching messages to the objects (e.g. shapes). It is used by ShapeHealing algorithms to attach a message describing encountered case (e.g. removing small edge from a wire).
The methods of this class are empty and redefined, for instance, in the classes for Data Exchange processors for attaching messages to interface file entities or CAS.CADE shapes.
Constructors(1)
Empty constructor.
Static methods(2)
- get_type_name(): string
Instance methods(4)
- Send(message: Message_Msg, gravity: Message_Gravity): void
Calls Send method with Null Transient.
Parameters (2)messagegravity
- Send(object: Standard_Transient, message: Message_Msg, gravity: Message_Gravity): void
Sends a message to be attached to the object. Object can be of any type interpreted by redefined MsgRegistrator.
Parameters (3)objectmessagegravity
- Send(shape: TopoDS_Shape, message: Message_Msg, gravity: Message_Gravity): void
Sends a message to be attached to the shape.
Parameters (3)shapemessagegravity
ShapeExtend_ComplexCurve
Defines a curve which consists of several segments. Implements basic interface to it.
Static methods(2)
- get_type_name(): string
Instance methods(20)
- NbCurves(): number
Returns number of curves.
- Curve(index: number): Geom_Curve
Returns curve given by its index.
Parameters (1)index
- LocateParameter(U: number, UOut: number): { returnValue: number; UOut: number }
Returns number of the curve for the given parameter U and local parameter UOut for the found curve.
Parameters (2)UUOut
ReturnsA result object with fields:
returnValue: the C++ return valueUOut: updated value from the call.
- LocalToGlobal(index: number, Ulocal: number): number
Returns global parameter for the whole curve according to the segment and local parameter on it.
Parameters (2)indexUlocal
Applies transformation to each curve.
Parameters (1)T
- ReversedParameter(U: number): number
Returns 1 - U.
Parameters (1)U
- FirstParameter(): number
Returns 0.
- LastParameter(): number
Returns 1.
- IsClosed(): boolean
Returns True if the curve is closed.
- IsPeriodic(): boolean
Returns False.
Returns GeomAbs_C0.
- IsCN(N: number): boolean
Returns False if N > 0.
Parameters (1)N
Returns point at parameter U. Finds appropriate curve and local parameter on it.
Parameters (1)U
- EvalD1(U: number): Geom_Curve_ResD1
Computes the point and first derivative at parameter U. Raises an exception if the curve continuity is not C1.
Parameters (1)U
- EvalD2(U: number): Geom_Curve_ResD2
Computes the point and first two derivatives at parameter U. Raises an exception if the curve continuity is not C2.
Parameters (1)U
- EvalD3(U: number): Geom_Curve_ResD3
Computes the point and first three derivatives at parameter U. Raises an exception if the curve continuity is not C3.
Parameters (1)U
Computes the Nth derivative at parameter U. Raises an exception if the curve continuity is not CN, or N < 1.
Parameters (2)UN
- GetScaleFactor(ind: number): number
Returns scale factor for recomputing of deviatives.
Parameters (1)ind
- CheckConnectivity(Preci: number): boolean
Checks geometrical connectivity of the curves, including closure (sets fields myClosed).
Parameters (1)Preci
ShapeExtend_CompositeSurface
Composite surface is represented by a grid of surfaces (patches) connected geometrically. Patches may have different parametrisation ranges, but they should be parametrised in the same manner so that parameter of each patch (u,v) can be converted to global parameter on the whole surface (U,V) with help of linear transformation:
for any i,j-th patch U = Ui + ( u - uijmin ) * ( Ui+1 - Ui ) / ( uijmax - uijmin ) V = Vj + ( v - vijmin ) * ( Vj+1 - Vj ) / ( vijmax - vijmin )
where
[uijmin, uijmax] * [ vijmin, vijmax] - parametric range of i,j-th patch,
Ui (i=1,..,Nu+1), Vi (j=1,..,Nv+1) - values defining global parametrisation by U and V (correspond to points between patches and bounds, (Ui,Uj) corresponds to (uijmin,vijmin) on i,j-th patch) and to (u(i-1)(j-1)max,v(i-1)(j-1)max) on (i-1),(j-1)-th patch.
Geometrical connectivity is expressed via global parameters: Si,j [blocked] = Si+1,j [blocked] for any i, j, V Si,j [blocked] = Si,j+1 [blocked] for any i, j, U It is checked with Precision::Confusion() by default.
NOTE 1: This class is inherited from Geom_Surface in order to make it more easy to store and deal with it. However, it should not be passed to standard methods dealing with geometry since this type is not known to them. NOTE 2: Not all the inherited methods are implemented, and some are implemented not in the full form.
Constructors(3)
Empty constructor.
- constructor(GridSurf: NCollection_HArray2_handle_Geom_Surface, param?: ShapeExtend_Parametrisation): ShapeExtend_CompositeSurface
Initializes by a grid of surfaces (calls
Init()).Parameters (2)GridSurfparam
- constructor(GridSurf: NCollection_HArray2_handle_Geom_Surface, UJoints: NCollection_Array1_double, VJoints: NCollection_Array1_double): ShapeExtend_CompositeSurface
Initializes by a grid of surfaces (calls
Init()).Parameters (3)GridSurfUJointsVJoints
Static methods(2)
- get_type_name(): string
Instance methods(52)
- Init(GridSurf: NCollection_HArray2_handle_Geom_Surface, param: ShapeExtend_Parametrisation): boolean
Initializes by a grid of surfaces. All the Surfaces of the grid must have geometrical connectivity as stated above. If geometrical connectivity is not satisfied, method returns False. However, class is initialized even in that case.
Last parameter defines how global parametrisation (joint values) will be computed: ShapeExtend_Natural: U1 = u11min, Ui+1 = Ui + (ui1max-ui1min), etc. ShapeExtend_Uniform: Ui = i-1, Vj = j-1 ShapeExtend_Unitary: Ui = (i-1)/Nu, Vi = (j-1)/NvParameters (2)GridSurfparam
- Init(GridSurf: NCollection_HArray2_handle_Geom_Surface, UJoints: NCollection_Array1_double, VJoints: NCollection_Array1_double): boolean
Initializes by a grid of surfaces with given global parametrisation defined by UJoints and VJoints arrays, each having length equal to number of patches in corresponding direction + 1. Global joint values should be sorted in increasing order. All the Surfaces of the grid must have geometrical connectivity as stated above. If geometrical connectivity is not satisfied, method returns False. However, class is initialized even in that case.
Parameters (3)GridSurfUJointsVJoints
- NbUPatches(): number
Returns number of patches in U direction.
- NbVPatches(): number
Returns number of patches in V direction.
- Patch(pnt: gp_Pnt2d): Geom_Surface
Returns one surface patch that contains given point.
Parameters (1)pnt
- Patch(i: number, j: number): Geom_Surface
Returns one surface patch.
Parameters (2)ij
- Patch(U: number, V: number): Geom_Surface
Returns one surface patch that contains given (global) parameters.
Parameters (2)UV
Returns grid of surfaces.
Returns the array of U values corresponding to joint points between patches as well as to start and end points, which define global parametrisation of the surface.
Returns the array of V values corresponding to joint points between patches as well as to start and end points, which define global parametrisation of the surface.
- UJointValue(i: number): number
Returns i-th joint value in U direction (1-st is global Umin, (
NbUPatches()+1)-th is global Umax on the composite surface).Parameters (1)i
- VJointValue(j: number): number
Returns j-th joint value in V direction (1-st is global Vmin, (
NbVPatches()+1)-th is global Vmax on the composite surface).Parameters (1)j
- SetUJointValues(UJoints: NCollection_Array1_double): boolean
Sets the array of U values corresponding to joint points, which define global parametrisation of the surface. Number of values in array should be equal to
NbUPatches()+1. All the values should be sorted in increasing order. If this is not satisfied, does nothing and returns False.Parameters (1)UJoints
- SetVJointValues(VJoints: NCollection_Array1_double): boolean
Sets the array of V values corresponding to joint points, which define global parametrisation of the surface Number of values in array should be equal to
NbVPatches()+1. All the values should be sorted in increasing order. If this is not satisfied, does nothing and returns False.Parameters (1)VJoints
- SetUFirstValue(UFirst: number): void
Changes starting value for global U parametrisation (all other joint values are shifted accordingly).
Parameters (1)UFirst
- SetVFirstValue(VFirst: number): void
Changes starting value for global V parametrisation (all other joint values are shifted accordingly).
Parameters (1)VFirst
- LocateUParameter(U: number): number
Returns number of col that contains given (global) parameter.
Parameters (1)U
- LocateVParameter(V: number): number
Returns number of row that contains given (global) parameter.
Parameters (1)V
- LocateUVPoint(pnt: gp_Pnt2d, i: number, j: number): { i: number; j: number }
Returns number of row and col of surface that contains given point.
Parameters (3)pntij
ReturnsA result object with fields:
i: updated value from the call.j: updated value from the call.
- ULocalToGlobal(i: number, j: number, u: number): number
Converts local parameter u on patch i,j to global parameter U.
Parameters (3)iju
- VLocalToGlobal(i: number, j: number, v: number): number
Converts local parameter v on patch i,j to global parameter V.
Parameters (3)ijv
- LocalToGlobal(i: number, j: number, uv: gp_Pnt2d): gp_Pnt2d
Converts local parameters uv on patch i,j to global parameters UV.
Parameters (3)ijuv
- UGlobalToLocal(i: number, j: number, U: number): number
Converts global parameter U to local parameter u on patch i,j.
Parameters (3)ijU
- VGlobalToLocal(i: number, j: number, V: number): number
Converts global parameter V to local parameter v on patch i,j.
Parameters (3)ijV
- GlobalToLocal(i: number, j: number, UV: gp_Pnt2d): gp_Pnt2d
Converts global parameters UV to local parameters uv on patch i,j.
Parameters (3)ijUV
- GlobalToLocalTransformation(i: number, j: number, uFact: number, Trsf: gp_Trsf2d): { returnValue: boolean; uFact: number }
Computes transformation operator and uFactor descrinbing affine transformation required to convert global parameters on composite surface to local parameters on patch (i,j): uv = ( uFactor, 1. ) X Trsf * UV; NOTE: Thus Trsf contains shift and scale by V, scale by U is stored in uFact. Returns True if transformation is not an identity.
Parameters (4)ijuFactTrsf—Mutated in place; read the updated value from this argument after the call.
ReturnsA result object with fields:
returnValue: the C++ return valueuFact: updated value from the call.
Applies transformation to all the patches.
Parameters (1)T
Returns a copy of the surface.
- UReverse(): void
NOT IMPLEMENTED (does nothing).
- UReversedParameter(U: number): number
Returns U.
Parameters (1)U
- VReverse(): void
NOT IMPLEMENTED (does nothing).
- VReversedParameter(V: number): number
Returns V.
Parameters (1)V
- Bounds(U1: number, U2: number, V1: number, V2: number): { U1: number; U2: number; V1: number; V2: number }
Returns the parametric bounds of grid.
Parameters (4)U1U2V1V2
ReturnsA result object with fields:
U1: updated value from the call.U2: updated value from the call.V1: updated value from the call.V2: updated value from the call.
- IsUClosed(): boolean
Returns True if grid is closed in U direction (i.e. connected with
Precision::Confusion). - IsVClosed(): boolean
Returns True if grid is closed in V direction (i.e. connected with
Precision::Confusion). - IsUPeriodic(): boolean
Returns False.
- IsVPeriodic(): boolean
Returns False.
- UIso(U: number): Geom_Curve
NOT IMPLEMENTED (returns Null curve).
Parameters (1)U
- VIso(V: number): Geom_Curve
NOT IMPLEMENTED (returns Null curve).
Parameters (1)V
returns C0
- IsCNu(N: number): boolean
returns True if N <=0
Parameters (1)N
- IsCNv(N: number): boolean
returns True if N <=0
Parameters (1)N
Computes the point of parameter U,V on the grid.
Parameters (2)UV
- EvalD1(U: number, V: number): Geom_Surface_ResD1
Computes the point P and the first derivatives in the directions U and V at this point.
Parameters (2)UV
- EvalD2(U: number, V: number): Geom_Surface_ResD2
Computes the point P, the first and the second derivatives in the directions U and V at this point.
Parameters (2)UV
- EvalD3(U: number, V: number): Geom_Surface_ResD3
Computes the point P, the first,the second and the third derivatives in the directions U and V at this point.
Parameters (2)UV
Computes the derivative of order Nu in the direction U and Nv in the direction V at the point P(U, V).
Parameters (4)UVNuNv
Computes the point of parameter pnt on the grid.
Parameters (1)pnt
Computes the point of parameter pnt on the grid.
Parameters (2)UV
- ComputeJointValues(param?: ShapeExtend_Parametrisation): void
Computes Joint values according to parameter.
Parameters (1)param
- CheckConnectivity(prec: number): boolean
Checks geometrical connectivity of the patches, including closedness (sets fields muUClosed and myVClosed).
Parameters (1)prec
ShapeExtend_Explorer
This class is intended to explore shapes and convert different representations (list, sequence, compound) of complex shapes. It provides tools for:
- obtaining type of the shapes in context of
TopoDS_Compound, - exploring shapes in context of
TopoDS_Compound, - converting different representations of shapes (list, sequence, compound).
Constructors(1)
Creates an object Explorer.
Instance methods(7)
Converts a sequence of Shapes to a Compound.
Parameters (1)seqval
- SeqFromCompound(comp: TopoDS_Shape, expcomp: boolean): NCollection_HSequence_TopoDS_Shape
Converts a Compound to a list of Shapes if <comp> is not a compound, the list contains only <comp> if <comp> is Null, the list is empty if <comp> is a Compound, its sub-shapes are put into the list then if <expcomp> is True, if a sub-shape is a Compound, it is not put to the list but its sub-shapes are (recursive).
Parameters (2)compexpcomp
- ListFromSeq(seqval: NCollection_HSequence_TopoDS_Shape, lisval: NCollection_List_TopoDS_Shape, clear: boolean): void
Converts a Sequence of Shapes to a List of Shapes <clear> if True (D), commands the list to start from scratch else, the list is cumulated.
Parameters (3)seqvallisval—Mutated in place; read the updated value from this argument after the call.clear
Converts a List of Shapes to a Sequence of Shapes.
Parameters (1)lisval
- ShapeType(shape: TopoDS_Shape, compound: boolean): TopAbs_ShapeEnum
Returns the type of a Shape: true type if <compound> is False If <compound> is True and <shape> is a Compound, iterates on its items. If all are of the same type, returns this type. Else, returns COMPOUND. If it is empty, returns SHAPE For a Null Shape, returns SHAPE.
Parameters (2)shapecompound
- SortedCompound(shape: TopoDS_Shape, type_: TopAbs_ShapeEnum, explore: boolean, compound: boolean): TopoDS_Shape
Builds a COMPOUND from the given shape. It explores the shape level by level, according to the <explore> argument. If <explore> is False, only COMPOUND items are explored, else all items are. The following shapes are added to resulting compound:
- shapes which comply to <type>
- if <type> is WIRE, considers also free edges (and makes wires)
- if <type> is SHELL, considers also free faces (and makes shells) If <compound> is True, gathers items in compounds which correspond to starting COMPOUND,SOLID or SHELL containers, or items directly contained in a Compound
Parameters (4)shapetype_explorecompound
- DispatchList(list: NCollection_HSequence_TopoDS_Shape): { vertices: NCollection_HSequence_TopoDS_Shape; edges: NCollection_HSequence_TopoDS_Shape; wires: NCollection_HSequence_TopoDS_Shape; faces: NCollection_HSequence_TopoDS_Shape; shells: NCollection_HSequence_TopoDS_Shape; solids: NCollection_HSequence_TopoDS_Shape; compsols: NCollection_HSequence_TopoDS_Shape; compounds: NCollection_HSequence_TopoDS_Shape; [Symbol.dispose](): void }
Dispatches starting list of shapes according to their type, to the appropriate resulting lists For each of these lists, if it is null, it is firstly created else, new items are appended to the already existing ones.
Parameters (1)list
ReturnsA result object with fields:
vertices: owned by the returned envelope.edges: owned by the returned envelope.wires: owned by the returned envelope.faces: owned by the returned envelope.shells: owned by the returned envelope.solids: owned by the returned envelope.compsols: owned by the returned envelope.compounds: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
ShapeExtend_MsgRegistrator
Attaches messages to the objects (generic Transient or shape). The objects of this class are transmitted to the Shape Healing algorithms so that they could collect messages occurred during processing.
Messages are added to the Maps (stored as a field) that can be used, for instance, by Data Exchange processors to attach those messages to initial file entities.
Constructors(1)
Creates an object.
Static methods(2)
- get_type_name(): string
Instance methods(6)
- Send(object: Standard_Transient, message: Message_Msg, gravity: Message_Gravity): void
Sends a message to be attached to the object. If the object is in the map then the message is added to the list, otherwise the object is firstly added to the map.
Parameters (3)objectmessagegravity
- Send(shape: TopoDS_Shape, message: Message_Msg, gravity: Message_Gravity): void
Sends a message to be attached to the shape. If the shape is in the map then the message is added to the list, otherwise the shape is firstly added to the map.
Parameters (3)shapemessagegravity
- Send(message: Message_Msg, gravity: Message_Gravity): void
Sends a message to be attached to the object. If the object is in the map then the message is added to the list, otherwise the object is firstly added to the map.
Parameters (2)messagegravity
Returns a Map of objects and message list.
Returns a Map of shapes and message list.
ShapeExtend_Parametrisation
Properties(3)
ShapeExtend_Status
Properties(19)
ShapeExtend_WireData
This class provides a data structure necessary for work with the wire as with ordered list of edges, what is required for many algorithms. The advantage of this class is that it allows to work with wires which are not correct.
The object of the class ShapeExtend_WireData can be initialized by TopoDS_Wire, and converted back to TopoDS_Wire. An edge in the wire is defined by its rank number. Operations of accessing, adding and removing edge at the given rank number are provided.
On the whole wire, operations of circular permutation and reversing (both orientations of all edges and order of edges) are provided as well. This class also provides a method to check if the edge in the wire is a seam (if the wire lies on a face). This class is handled by reference. Such an approach gives the following advantages:
- Sharing the object of this class strongly optimizes the processes of analysis and fixing performed in parallel on the wire stored in the form of this class. Fixing tool (e.g.
ShapeFix_Wire) fixes problems one by one using analyzing tool (e.g.ShapeAnalysis_Wire). Sharing allows not to reinitialize each time the analyzing tool with modifiedShapeExtend_WireDatawhat consumes certain time. - No copying of contents. The object of
ShapeExtend_WireDataclass has quite big size, returning it as a result of the function would cause additional copying of contents if this class were one handled by value. Moreover, this class is stored as a field in other classes which are they returned as results of functions, storing only a handle toShapeExtend_WireDatasaves time and memory.
Constructors(2)
Empty constructor, creates empty wire with no edges.
- constructor(wire: TopoDS_Wire, chained?: boolean, theManifoldMode?: boolean): ShapeExtend_WireData
Constructor initializing the data from
TopoDS_Wire. Calls Init(wire,chained).Parameters (3)wirechainedtheManifoldMode
Static methods(2)
- get_type_name(): string
Instance methods(28)
- Init(other: ShapeExtend_WireData): void
Copies data from another WireData.
Parameters (1)other
- Init(wire: TopoDS_Wire, chained: boolean, theManifoldMode: boolean): boolean
Loads an already existing wire If <chained> is True (default), edges are added in the sequence as they are explored by
TopoDS_IteratorElse, if <chained> is False, wire is explored byBRepTools_WireExplorerand it is guaranteed that edges will be sequentially connected. Remark : In the latter case it can happen that not all edges will be found (because of limitations ofBRepTools_WireExplorerfor disconnected wires and wires with seam edges).Parameters (3)wirechainedtheManifoldMode
- Clear(): void
Clears data about Wire.
- ComputeSeams(enforce?: boolean): void
Computes the list of seam edges By default (direct call), computing is enforced For indirect call (from IsSeam) it is redone only if not yet already done or if the list of edges has changed Remark : A Seam Edge is an Edge present twice in the list, once as FORWARD and once as REVERSED Each sense has its own PCurve, the one for FORWARD must be set in first.
Parameters (1)enforce
- SetLast(num: number): void
Does a circular permutation in order to set <num>th edge last.
Parameters (1)num
- SetDegeneratedLast(): void
When the wire contains at least one degenerated edge, sets it as last one Note : It is useful to process pcurves, for instance, while the pcurve of a DGNR may not be computed from its 3D part (there is none) it is computed after the other edges have been computed and chained.
- Add(edge: TopoDS_Edge, atnum: number): void
Adds an edge to a wire, being defined (not yet ended) This is the plain, basic, function to add an edge <num> = 0 (D): Appends at end <num> = 1: Preprends at start else, Insert before <num> Remark : Null Edge is simply ignored.
Parameters (2)edgeatnum
- Add(wire: TopoDS_Wire, atnum: number): void
Adds an entire wire, considered as a list of edges Remark : The wire is assumed to be ordered (
TopoDS_Iteratoris used).Parameters (2)wireatnum
- Add(wire: ShapeExtend_WireData, atnum: number): void
Adds a wire in the form of WireData.
Parameters (2)wireatnum
- Add(shape: TopoDS_Shape, atnum: number): void
Adds an edge or a wire invoking corresponding method Add.
Parameters (2)shapeatnum
- AddOriented(edge: TopoDS_Edge, mode: number): void
Adds an edge to start or end of <me>, according to <mode> 0: at end, as direct 1: at end, as reversed 2: at start, as direct 3: at start, as reversed < 0: no adding.
Parameters (2)edgemode
- AddOriented(wire: TopoDS_Wire, mode: number): void
Adds a wire to start or end of <me>, according to <mode> 0: at end, as direct 1: at end, as reversed 2: at start, as direct 3: at start, as reversed < 0: no adding.
Parameters (2)wiremode
- AddOriented(shape: TopoDS_Shape, mode: number): void
Adds an edge or a wire invoking corresponding method AddOriented.
Parameters (2)shapemode
- Remove(num?: number): void
Removes an Edge, given its rank. By default removes the last edge.
Parameters (1)num
- Set(edge: TopoDS_Edge, num?: number): void
Replaces an edge at the given rank number <num> with new one. Default is last edge (<num> = 0).
Parameters (2)edgenum
- Reverse(): void
Reverses the sense of the list and the orientation of each Edge This method should be called when either wire has no seam edges or face is not available.
- Reverse(face: TopoDS_Face): void
Reverses the sense of the list and the orientation of each Edge The face is necessary for swapping pcurves for seam edges (first pcurve corresponds to orientation FORWARD, and second to REVERSED; when edge is reversed, pcurves must be swapped) If face is NULL, no swapping is performed.
Parameters (1)face
- NbEdges(): number
Returns the count of currently recorded edges.
- NbNonManifoldEdges(): number
Returns the count of currently recorded non-manifold edges.
- NonmanifoldEdge(num: number): TopoDS_Edge
Returns <num>th nonmanifold Edge.
Parameters (1)num
Returns sequence of non-manifold edges This sequence can be not empty if wire data set in manifold mode but initial wire has INTERNAL orientation or contains INTERNAL edges.
- ManifoldMode(): boolean
Returns mode defining manifold wire data or not. If manifold that nonmanifold edges will not be not consider during operations(previous behaviour) and they will be added only in result wire else non-manifold edges will consider during operations.
- Edge(num: number): TopoDS_Edge
Returns <num>th Edge.
Parameters (1)num
- Index(edge: TopoDS_Edge): number
Returns the index of the edge If the edge is a seam the orientation is also checked Returns 0 if the edge is not found in the list.
Parameters (1)edge
- IsSeam(num: number): boolean
Tells if an Edge is seam (see ComputeSeams) An edge is considered as seam if it presents twice in the edge list, once as FORWARD and once as REVERSED.
Parameters (1)num
- Wire(): TopoDS_Wire
Makes
TopoDS_WireusingBRep_Builder(just creates theTopoDS_Wireobject and adds all edges into it). This method should be called when the wire is correct (for example, after successful fixes byShapeFix_Wire) and adjacent edges share common vertices. In case if adjacent edges do not share the same vertices the resultingTopoDS_Wirewill be invalid. Makes
TopoDS_Wireusing BRepAPI_MakeWire. Class BRepAPI_MakeWire merges geometrically coincided vertices and can disturb correct order of edges in the wire. If this class fails, null shape is returned.