def FILL(h): doc =helper.getCurrentScene() box = doc.GetSelection()[0] bb=helper.getCornerPointCube(box) h.buildGrid(boundingBox=bb) #afviewer.displayFillBox(bb) t1 = time() h.fill3(seedNum=0) t2 = time() print 'time to fill', t2-t1 afviewer.displayFill() print 'time to display', time()-t2 #FILL(h1) #afviewer.displayOrganellesPoints() #afviewer.displayFreePoints()
def FILL(h): doc =helper.getCurrentScene() box = doc.GetSelection()[0] bb=helper.getCornerPointCube(box) h.buildGrid(boundingBox=bb) #afviewer.displayFillBox(bb) t1 = time() h.fill3(seedNum=0) t2 = time() print('time to fill', t2-t1) afviewer.displayFill() print('time to display', time()-t2) #FILL(h1) #afviewer.displayOrganellesPoints() #afviewer.displayFreePoints()
) rCyto.addIngredient( sph ) # vesicle from DejaVu.IndexedPolygons import IndexedPolygonsFromFile # create HistoVol h1 = HistoVol() # set recipes h1.setExteriorRecipe(rCyto) #o1.setSurfaceRecipe(rSurf1) #o1.setInnerRecipe(rMatrix1) from Pmv.hostappInterface.cinema4d_dev import helperC4D as helper #display the organel, the box, and prepare the hierachy... doc = helper.getCurrentScene() sel = doc.GetSelection() c4dorganlle = sel[0] helper.triangulate(c4dorganlle) faces,vertices,vnormals = helper.DecomposeMesh(c4dorganlle,edit=True,copy=True,tri=True) o1 = Organelle(vertices, faces, vnormals) h1.addOrganelle(o1) o1.setSurfaceRecipe(rSurf1) #o1.setInnerRecipe(rCyto) #define the viewer type dejavu,c4d,blender ViewerType='c4d' afviewer = AFViewer(ViewerType=ViewerType) #make some option here
) rCyto.addIngredient( sph ) # vesicle from DejaVu.IndexedPolygons import IndexedPolygonsFromFile # create HistoVol h1 = HistoVol() # set recipes h1.setExteriorRecipe(rCyto) #o1.setSurfaceRecipe(rSurf1) #o1.setInnerRecipe(rMatrix1) from Pmv.hostappInterface.cinema4d_dev import helperC4D as helper #display the organel, the box, and prepare the hierachy... doc = helper.getCurrentScene() sel = doc.GetSelection() c4dorganlle = sel[0] helper.triangulate(c4dorganlle) faces,vertices,vnormals = helper.DecomposeMesh(c4dorganlle,edit=True,copy=True,tri=True) o1 = Organelle(vertices, faces, vnormals) h1.addOrganelle(o1) o1.setSurfaceRecipe(rSurf1) #o1.setInnerRecipe(rCyto) #define the viewer type dejavu,c4d,blender ViewerType='c4d' afviewer = AFViewer(ViewerType=ViewerType) #make some option here