def buildGridData(self, *args, **kwargs): super(_NonuniformGrid3DBuilder, self).buildGridData(*args, **kwargs) ([self.Xoffset, self.Yoffset, self.Zoffset], self.ds) = _DOffsets.calcDOffsets(self.ds, self.ns, self.offset) self.vertices = _Grid3DBuilder.createVertices(self.ds[0], self.ds[1], self.ds[2], self.ns[0], self.ns[1], self.ns[2], self.numberOfVertices, self.numberOfHorizontalRows, self.numberOfVerticalColumns) \ + ((self.Xoffset,), (self.Yoffset,), (self.Zoffset,)) numFacesList, self.faces = _Grid3DBuilder.createFaces( self.ns[0], self.ns[1], self.ns[2]) self.numberOfXYFaces = numFacesList[0] self.numberOfXZFaces = numFacesList[1] self.numberOfYZFaces = numFacesList[2] self.numberOfFaces = numFacesList[3] self.cells = _Grid3DBuilder.createCells(self.ns[0], self.ns[1], self.ns[2], self.numberOfXYFaces, self.numberOfXZFaces, self.numberOfYZFaces)
def buildGridData(self, *args, **kwargs): super(_NonuniformGrid3DBuilder, self).buildGridData(*args, **kwargs) ([self.Xoffset, self.Yoffset, self.Zoffset], self.ds) = _DOffsets.calcDOffsets(self.ds, self.ns, self.offset) self.vertices = _Grid3DBuilder.createVertices( self.ds[0], self.ds[1], self.ds[2], self.ns[0], self.ns[1], self.ns[2], self.numberOfVertices, self.numberOfHorizontalRows, self.numberOfVerticalColumns, ) + ((self.Xoffset,), (self.Yoffset,), (self.Zoffset,)) numFacesList, self.faces = _Grid3DBuilder.createFaces(self.ns[0], self.ns[1], self.ns[2]) self.numberOfXYFaces = numFacesList[0] self.numberOfXZFaces = numFacesList[1] self.numberOfYZFaces = numFacesList[2] self.numberOfFaces = numFacesList[3] self.cells = _Grid3DBuilder.createCells( self.ns[0], self.ns[1], self.ns[2], self.numberOfXYFaces, self.numberOfXZFaces, self.numberOfYZFaces )
def buildGridData(self, *args, **kwargs): # call super for side-effects super(_NonuniformGrid1DBuilder, self).buildGridData(*args, **kwargs) (self.offsets, self.ds) = _DOffsets.calcDOffsets(self.ds, self.ns, self.offset) self.vertices = _Grid1DBuilder.createVertices(self.ds[0], self.ns[0]) \ + ((self.offsets[0],),) self.faces = _Grid1DBuilder.createFaces(self.numberOfVertices) self.numberOfFaces = len(self.faces[0]) self.cells = _Grid1DBuilder.createCells(self.ns[0])