Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Boeckenhoff
tfields
Commits
8a85dff8
Commit
8a85dff8
authored
May 14, 2020
by
dboe
Browse files
obj in out works
parent
d78dcfa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tfields/mesh3D.py
View file @
8a85dff8
...
...
@@ -321,7 +321,7 @@ class Mesh3D(tfields.TensorMaps):
group
=
dict
(
name
=
line
[
1
],
vertices
=
{},
faces
=
[])
elif
line
[
0
]
==
'v'
:
if
not
group
:
log
.
warnin
g
(
"No group
specified. I invent one myself.
"
)
log
.
debu
g
(
"No group
found. Setting default 'Group'
"
)
group
=
dict
(
name
=
'Group'
,
vertices
=
{},
faces
=
[])
vertex
=
list
(
map
(
float
,
line
[
1
:
4
]))
group
[
'vertices'
][
vertex_no
]
=
vertex
...
...
@@ -332,6 +332,8 @@ class Mesh3D(tfields.TensorMaps):
w
=
v
.
split
(
'/'
)
face
.
append
(
int
(
w
[
0
]))
group
[
'faces'
].
append
(
face
)
else
:
groups
.
append
(
group
)
vertices
=
[]
for
g
in
groups
[:]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment