mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 23:06:18 +00:00
Adjust patch orientation script
This commit is contained in:
parent
670412f630
commit
18a52f8f92
1 changed files with 19 additions and 3 deletions
|
@ -33,13 +33,19 @@ undo off
|
|||
normal = (cross (end - begin) (ref - begin))
|
||||
normal = (normalize normal)
|
||||
|
||||
rotnormal = (normal * (rotateZMatrix -90))
|
||||
rotnormal = (point3 0 0 0)
|
||||
if (normal.z > 0.9) then
|
||||
(
|
||||
-- print "x normal"
|
||||
--print "x normal"
|
||||
rotnormal = (normal * (rotateXMatrix -90))
|
||||
)
|
||||
-- print rotnormal
|
||||
else
|
||||
(
|
||||
normal.z = 0
|
||||
normal = (normalize normal)
|
||||
rotnormal = (normal * (rotateZMatrix -90))
|
||||
)
|
||||
--print rotnormal
|
||||
|
||||
-- print normal
|
||||
-- print rotnormal
|
||||
|
@ -106,3 +112,13 @@ undo off
|
|||
)
|
||||
)
|
||||
)
|
||||
|
||||
max select none
|
||||
clearselection()
|
||||
undo off
|
||||
(
|
||||
for cnode in nodes do
|
||||
(
|
||||
selectmore cnode
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue