Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create folder model for sphinx documentation
[modules/shaper.git]
/
src
/
PythonAPI
/
geom
/
missed.py
diff --git
a/src/PythonAPI/geom/missed.py
b/src/PythonAPI/geom/missed.py
index 0aa6db1e394b82a2d65d8e9ef012387f920f542f..247cfef3a99d0d7926396484f50ce7cf85323b28 100644
(file)
--- a/
src/PythonAPI/geom/missed.py
+++ b/
src/PythonAPI/geom/missed.py
@@
-2,24
+2,33
@@
# Author: Daniel Brunier-Coulin
# -----------------------------
# Author: Daniel Brunier-Coulin
# -----------------------------
-from GeomAPI import *
+
#
from GeomAPI import *
class Ax3:
class Ax3:
+ """A class to represent a Coordinate system object"""
def __init__(self, origin, normal, dirx):
def __init__(self, origin, normal, dirx):
+ """Constructor"""
+ ### Create an origin point
self.o = origin
self.o = origin
+ ### Create a normal vector
self.n = normal
self.n = normal
+ ### Create X axis direction
self.dx = dirx
def location (self):
self.dx = dirx
def location (self):
+ """Returns origin point"""
return self.o
def direction (self):
return self.o
def direction (self):
+ """Returns normal direction"""
return self.n
def xDirection (self):
return self.n
def xDirection (self):
+ """Returns direction of X axis"""
return self.dx
def yDirection (self):
return self.dx
def yDirection (self):
+ """Returns direction of Y axis"""
return self.n.cross(self.dx)
return self.n.cross(self.dx)