Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mrdna
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tbgl
tools
mrdna
Commits
a8ed3cac
Commit
a8ed3cac
authored
5 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
Fixed grouped transforms in vHelix parser
parent
465d369a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mrdna/readers/polygon_mesh.py
+2
-16
2 additions, 16 deletions
mrdna/readers/polygon_mesh.py
with
2 additions
and
16 deletions
mrdna/readers/polygon_mesh.py
+
2
−
16
View file @
a8ed3cac
...
...
@@ -76,30 +76,16 @@ class MayaObj():
def
get_position
(
self
):
if
self
.
parent
is
not
None
:
return
self
.
parent
.
_transform_child_
position
(
self
.
position
)
return
self
.
parent
.
get_orientation
().
dot
(
self
.
position
)
+
self
.
parent
.
get_
position
(
)
else
:
return
self
.
position
def
get_orientation
(
self
):
if
self
.
parent
is
not
None
:
return
self
.
parent
.
_transform_child
_orientation
(
self
.
orientation
)
return
self
.
parent
.
get
_orientation
(
).
dot
(
self
.
orientation
)
else
:
return
self
.
orientation
def
_transform_child_position
(
self
,
position
):
if
self
.
parent
is
not
None
:
p
=
self
.
parent
.
_transform_child_position
(
position
)
else
:
p
=
position
return
self
.
orientation
.
dot
(
p
)
+
self
.
position
def
_transform_child_orientation
(
self
,
orientation
):
if
self
.
parent
is
not
None
:
o
=
self
.
parent
.
_transform_child_orientation
(
orientation
)
else
:
o
=
orientation
return
self
.
orientation
.
dot
(
o
)
def
get_full_name
(
self
):
ret
=
self
.
name
if
self
.
parent
is
not
None
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment