Exemplo n.º 1
0
def disc(center, R, N=100, ntype='STRUCT'):
    """Create a disc of center C and radius R.
    Usage: disc((xc,yc,zc), R, N)"""
    A = Geom.disc(center, R, N, ntype)
    if ntype == 'STRUCT':
        return [
            C.convertArrays2ZoneNode('disc-part1', [A[0]]),
            C.convertArrays2ZoneNode('disc-part2', [A[1]]),
            C.convertArrays2ZoneNode('disc-part3', [A[2]]),
            C.convertArrays2ZoneNode('disc-part4', [A[3]]),
            C.convertArrays2ZoneNode('disc-part5', [A[4]])
        ]
    else:
        return C.convertArrays2ZoneNode('disc', [A])
Exemplo n.º 2
0
# - disc (array) -
import Geom as D
import KCore.test as test

a = D.disc((0,0,0), 1.)
test.testA(a, 1)