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
b6d8a858
Commit
b6d8a858
authored
6 years ago
by
cmaffeo2
Browse files
Options
Downloads
Patches
Plain Diff
small changes in organization
parent
314efe04
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
polygon_mesh.py
+0
-0
0 additions, 0 deletions
polygon_mesh.py
segmentmodel.py
+1
-1
1 addition, 1 deletion
segmentmodel.py
test.tcl
+0
-45
0 additions, 45 deletions
test.tcl
with
1 addition
and
46 deletions
t
es
t
.py
→
polygon_m
es
h
.py
+
0
−
0
View file @
b6d8a858
File moved
This diff is collapsed.
Click to expand it.
segmentmodel.py
+
1
−
1
View file @
b6d8a858
...
...
@@ -88,7 +88,7 @@ class Segment(ConnectableElement, Group):
self
.
_bead_model_generation
=
0
# TODO: remove?
self
.
segment_model
=
segment_model
# TODO: remove?
self
.
num_nts
=
num_nts
self
.
num_nts
=
int
(
num_nts
)
if
end_position
is
None
:
end_position
=
np
.
array
((
0
,
0
,
self
.
distance_per_nt
*
num_nts
))
+
start_position
self
.
start_position
=
start_position
...
...
This diff is collapsed.
Click to expand it.
test.tcl
deleted
100644 → 0
+
0
−
45
View file @
314efe04
# set ID [mol new]
graphics $ID delete all
# set ch [open /home/cmaffeo2/Downloads/bunny.ma]
set ch
[
open /home/cmaffeo2/Downloads/ball.ma
]
set helixCount 0
proc getNextVector
{
ch
}
{
gets $ch line
set line
[
split $line
]
lrange $line 5 7
}
proc eulerToRot
{
euler
}
{
lassign $euler x y z
transmult
[
transaxis z $z
]
[
transaxis y $y
]
[
transaxis x $x
]
}
while
{[
gets $ch line
]
>= 0
}
{
set args
[
lassign
[
split $line
]
cmd obj
]
if
{
$cmd
==
"createNode"
}
{
if
{
$obj
==
"HelixBase"
&& $drawBase
}
{
set drawBase 1
# set v
[
vecscale 10
[
getNextVector $ch
]]
set v
[
coordtrans $R
[
vecscale 10
[
getNextVector $ch
]]]
# set v
[
coordtrans
[
transmult
[
trans_from_offset
[
vecscale 10
[
getNextVector $ch
]]
$R
]
{
0 0 0
}]]
graphics $ID sphere $v radius 2
}
elseif
{
$obj
==
"vHelix"
}
{
set drawBase 1
# createNode vHelix -n
"helix_1"
;
# setAttr
".t"
-type
"double3"
-16.9433 11.8494 25.2659
;
# setAttr
".r"
-type
"double3"
42.338094401101131 222.16004220698011 5.8192508587610412
;
# setAttr
".dh"
yes
;
set v
[
vecscale 10
[
getNextVector $ch
]]
set r
[
getNextVector $ch
]
set R
[
eulerToRot $r
]
set R
[
transmult
[
trans_from_offset $v
]
$R
]
}
}
}
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