Exemplo n.º 1
0
# - delete (array) -
import Generator as G
import CPlot
import time

a = G.cart((0, 0, 0), (1, 1, 1), (10, 10, 10))
b = G.cart((0, 10, 0), (1, 1, 1), (10, 10, 10))
c = G.cartTetra((11, 0, 0), (1, 1, 1), (10, 10, 10))

CPlot.display([a, b, c])
time.sleep(1)
CPlot.delete([1])
CPlot.render()
time.sleep(1)
Exemplo n.º 2
0
# - delete (array) -
import Generator as G
import CPlot
import time

a = G.cart( (0,0,0), (1,1,1), (10,10,10) )
b = G.cart( (11,0,0), (1,1,1), (10,10,10) )

CPlot.display([a,b]); time.sleep(1)
CPlot.delete([0]); CPlot.render(); time.sleep(1)
CPlot.delete(['S-Zone 1']); CPlot.render(); time.sleep(1)
Exemplo n.º 3
0
def render():
    """Force render.
    Usage: render()"""
    CPlot.render()
Exemplo n.º 4
0
# - add (array) -
import Generator as G
import CPlot
import time

a = G.cartTetra( (0,0,0), (1,1,1), (10,10,10) )
A = [a]
CPlot.display(A); time.sleep(1)

for i in range(10):
    b = G.cartTetra( (i*10,0,0), (1,1,1), (10,10,10) )
    CPlot.add(A, 0, b); CPlot.render(); time.sleep(0.5)

for i in range(10):
    b = G.cart( (i*10,10,0), (1,1,1), (10,10,10) )
    CPlot.add(A, 0, b); CPlot.render(); time.sleep(0.5)
Exemplo n.º 5
0
# - replace (array) -
import Generator as G
import CPlot
import time

a = G.cart( (0,0,0), (1,1,1), (30,30,30) )
A = [a]
CPlot.display(A); time.sleep(1)

for i in range(10):
    b = G.cart( (i,0,0), (1,1,1), (30,30,30) )
    CPlot.replace(A, 0, b); CPlot.render(); time.sleep(0.1)