Skip to content
Snippets Groups Projects
Commit 8bc9aa9d authored by Jonathan Smith's avatar Jonathan Smith
Browse files

Fixed some other problems with solids script regarding weird names which...

Fixed some other problems with solids script regarding weird names which messed up truncation of verts and edges
parent 0066b32f
No related branches found
No related tags found
No related merge requests found
...@@ -276,7 +276,9 @@ def createSolid(plato,vtrunc,etrunc,dual,snub): ...@@ -276,7 +276,9 @@ def createSolid(plato,vtrunc,etrunc,dual,snub):
if dual: if dual:
vInput,fInput = source(plato) vInput,fInput = source(plato)
vInput = [i*supposed_size for i in vInput] vInput = [i*supposed_size for i in vInput]
return vInput,fInput,sourceName return vInput,fInput#,sourceName
#JayDez - I don't know what sourceName is, but commenting that
#part out fixes vert truncation problems.
vInput = [-i*supposed_size for i in vInput] vInput = [-i*supposed_size for i in vInput]
return vInput,fInput return vInput,fInput
...@@ -508,7 +510,7 @@ def createSolid(plato,vtrunc,etrunc,dual,snub): ...@@ -508,7 +510,7 @@ def createSolid(plato,vtrunc,etrunc,dual,snub):
direction = 0 # no diagonal, face is planar (somewhat) direction = 0 # no diagonal, face is planar (somewhat)
if etrunc: # for every vertex if etrunc: # for every vertex
for i in v0: # add the face, consisting of the vert,edge,next for i in v: # add the face, consisting of the vert,edge,next
# edge and face between those edges # edge and face between those edges
for j in range(len(i[1])): for j in range(len(i[1])):
f = [i[0],eStart+i[5][j-1],fStart+i[3][j],eStart+i[5][j]] f = [i[0],eStart+i[5][j-1],fStart+i[3][j],eStart+i[5][j]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment