Back to index

salome-geom  6.5.0
Classes | Functions | Variables
GEOM_PY.sketcher Namespace Reference

Classes

class  Sketcher

Functions

def TEST_toString
def TEST_usingGeom

Variables

 geompyEnable = True

Function Documentation

Definition at line 112 of file sketcher.py.

00112 
00113 def TEST_toString():
00114     mysketcher = Sketcher()
00115 
00116     mysketcher.startAtPoint(1.234,4.321)
00117     mysketcher.translateToPoint(2.234,5.321)
00118 
00119     expectedResult = "Sketcher:F 1.234 4.321:TT 2.234 5.321"
00120     result = mysketcher.toString()
00121     print "sketcher=",mysketcher.toString()
00122     if result == expectedResult:
00123         print "OK"
00124     else:
00125         print "Not OK"

Definition at line 126 of file sketcher.py.

00126 
00127 def TEST_usingGeom():
00128     mysketcher = Sketcher()
00129     mysketcher.startAtPoint(0,0)
00130     mysketcher.translateToPoint(100,0)
00131     mysketcher.translateWithAngleAndLength(30,100)
00132     mysketcher.intersectYWithAngle(15,100)
00133     mysketcher.close()
00134     wire = mysketcher.getGeomWire()
00135     if geompyEnable:
00136         geompy.addToStudy( wire, "Sketch" )
00137         


Variable Documentation

Definition at line 47 of file sketcher.py.