        
       rootObj.add mesh
       #recursive, for sub objects
-      if csgObj.parts?
-        for index, part of csgObj.parts
-          @_importGeom(part,mesh)
+      if csgObj.children?
+        for index, child of csgObj.children
+          @_importGeom(child, mesh)
       
 
   return VisualEditorView

      mesh.geometry.computeCentroids()
      
      if @renderer instanceof THREE.CanvasRenderer
        @mesh.doubleSided = true
      
      #get object connectors
      for i, conn of geom.connectors

      @assembly = new THREE.Mesh(new THREE.Geometry())
      @assembly.name = "assembly"
      
      for index, part of res.children
        @_importGeom(part,@assembly)
        
      @scene.add @assembly 
