Salome HOME
projects
/
modules
/
shaper.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix for the issue #593: do not remove naming attribute, but use TNaming_Builder for...
[modules/shaper.git]
/
src
/
PythonAPI
/
geom
/
missed.py
1
# Direct Geometry API not yet swigged
2
# Author: Daniel Brunier-Coulin
3
# -----------------------------
4
5
from GeomAPI import *
6
7
8
class Ax3:
9
10
def __init__(self, origin, normal, dirx):
11
self.o = origin
12
self.n = normal
13
self.dx = dirx
14
15
def location (self):
16
return self.o
17
18
def direction (self):
19
return self.n
20
21
def xDirection (self):
22
return self.dx
23
24
def yDirection (self):
25
return self.n.cross(self.dx)