def setup_class(self): bp = np.array([[0.25, 0.25, 0.25], [0.25, 0.75, 0.25], [0.75, 0.25, 0.25], [0.75, 0.75, 0.25], [0.75, 0.25, 0.75], [0.25, 0.75, 0.75], [0.25, 0.25, 0.75], [0.75, 0.75, 0.75]]) scale = 1e-4 bp = reflect_base_points(bp, [1, 1, 1]) * scale self.wrk = op.Workspace() self.prj = op.materials.VoronoiFibers(fiber_rad=2e-6, resolution=1e-6, shape=[scale] * 3, points=bp, name='test') self.net = self.prj.network self.del_geom = self.prj.geometries()['test_del'] self.vor_geom = self.prj.geometries()['test_vor']
def setup_class(self): bp = sp.array([[0.25, 0.25, 0.25], [0.25, 0.75, 0.25], [0.75, 0.25, 0.25], [0.75, 0.75, 0.25], [0.75, 0.25, 0.75], [0.25, 0.75, 0.75], [0.25, 0.25, 0.75], [0.75, 0.75, 0.75]]) scale = 1e-4 bp = reflect_base_points(bp, [1, 1, 1])*scale self.wrk = op.Workspace() self.prj = op.materials.VoronoiFibers(fiber_rad=2e-6, resolution=1e-6, shape=[scale]*3, points=bp, name='test') self.net = self.prj.network self.del_geom = self.prj.geometries()['test_del'] self.vor_geom = self.prj.geometries()['test_vor']