5 |
from java.lang import Math |
from java.lang import Math |
6 |
|
|
7 |
import vob |
import vob |
8 |
|
#import vob.putil.misc |
9 |
import org.fenfire as ff |
import org.fenfire as ff |
10 |
import org.fenfire.vocab.STRUCTLINK as LINK |
import org.fenfire.vocab.STRUCTLINK as LINK |
11 |
from org.fenfire.vocab import * |
from org.fenfire.vocab import * |
133 |
#self.N", 21, 3, "N", "N", "n"), |
#self.N", 21, 3, "N", "N", "n"), |
134 |
self.fillets = 1 |
self.fillets = 1 |
135 |
#self.size", 100, 10, "Node size", "K", "k"), |
#self.size", 100, 10, "Node size", "K", "k"), |
136 |
self.dice = 20 |
self.dice = 4 |
137 |
self.fillet3d = 1 |
self.fillet3d = 1 |
138 |
self.blend3d = 0 |
self.blend3d = 0 |
139 |
self.linewidth = 2 |
self.linewidth = 2 |
211 |
currentIndex = links.index(self.previous['centerNode']) |
currentIndex = links.index(self.previous['centerNode']) |
212 |
except ValueError: pass |
except ValueError: pass |
213 |
|
|
214 |
|
if len(links) == 0: self.net.link(node, node) # XXX probably not the right way |
215 |
if len(links) > 0: |
if len(links) > 0: |
216 |
rotationAngle = 2*Math.PI / float(len(links)) |
rotationAngle = 2*Math.PI / float(len(links)) |
217 |
|
|
246 |
|
|
247 |
if dbg: p('fillet..', c, ) |
if dbg: p('fillet..', c, ) |
248 |
def pc(conns, cs): |
def pc(conns, cs): |
249 |
vs.put(conns, cs + c) |
if self.context and self.context.getAccursed() == node: |
250 |
|
vs.put(vob.putil.misc.getDListNocoords("Color 1. 0. 0.")) |
251 |
|
vs.put(conns, cs+c) |
252 |
|
|
253 |
# draw fillets |
# draw fillets |
254 |
vob.fillet.light3d.drawFillets(self, vs, pc) |
vob.fillet.light3d.drawFillets(self, vs, pc) |