Skip to content

Commit 65e4444

Browse files
committed
Moved adapt to common
1 parent 8c4f852 commit 65e4444

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

OCCUtils/Adapt.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

OCCUtils/Common.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,20 @@ def vertex2pnt(vertex):
534534
return BRep_Tool.Pnt(vertex)
535535

536536

537+
def adapt_edge_to_curve(edg):
538+
'''
539+
returns a curve adaptor from an edge
540+
@param edg: TopoDS_Edge
541+
'''
542+
return BRepAdaptor_Curve(edg)
543+
544+
545+
def adapt_edge_to_hcurve(edg):
546+
c = BRepAdaptor_HCurve()
547+
c.ChangeCurve().Initialize(edg)
548+
return c
549+
550+
537551
def to_adaptor_3d(curveType):
538552
'''
539553
abstract curve like type into an adaptor3d

0 commit comments

Comments
 (0)