X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPythonAPI%2Fgeom%2Fmissed.py;h=247cfef3a99d0d7926396484f50ce7cf85323b28;hb=058a30e166a8474c2a8313cf4b5c1ef67bdcca05;hp=0aa6db1e394b82a2d65d8e9ef012387f920f542f;hpb=5297856d2148995c4dcb0561f895a6a22db7086b;p=modules%2Fshaper.git diff --git a/src/PythonAPI/geom/missed.py b/src/PythonAPI/geom/missed.py index 0aa6db1e3..247cfef3a 100644 --- a/src/PythonAPI/geom/missed.py +++ b/src/PythonAPI/geom/missed.py @@ -2,24 +2,33 @@ # Author: Daniel Brunier-Coulin # ----------------------------- -from GeomAPI import * +#from GeomAPI import * class Ax3: + """A class to represent a Coordinate system object""" def __init__(self, origin, normal, dirx): + """Constructor""" + ### Create an origin point self.o = origin + ### Create a normal vector self.n = normal + ### Create X axis direction self.dx = dirx def location (self): + """Returns origin point""" return self.o def direction (self): + """Returns normal direction""" return self.n def xDirection (self): + """Returns direction of X axis""" return self.dx def yDirection (self): + """Returns direction of Y axis""" return self.n.cross(self.dx)