def add_corners(model, builder): nb = 5 uuids = [] for i in range(nb): uuids.append(builder.add_corner()) temp_corner = model.corner(builder.add_corner()) builder.remove_corner(temp_corner) if model.nb_corners() != nb: raise ValueError("[Test] Section should have 5 corners") return uuids
def add_corners(model, builder): nb = 6 uuids = [] for i in range(nb): uuids.append(builder.add_corner()) builder.set_corner_name(uuids[-1], "corner" + str(len(uuids))) temp_corner = model.corner(builder.add_corner()) builder.remove_corner(temp_corner) if model.nb_corners() != nb: raise ValueError("[Test] BRep should have 6 corners") if model.corner(uuids[3]).name() != "corner4": raise ValueError("[Test] Wrong Corner name") return uuids
def test_reloaded_brep(model): if model.nb_corners() != 6: raise ValueError( "[Test] Number of Corners in reloaded BRep should be 6") if model.nb_lines() != 9: raise ValueError("[Test] Number of Lines in reloaded BRep should be 9") if model.nb_surfaces() != 5: raise ValueError( "[Test] Number of Surfaces in reloaded BRep should be 5") if model.nb_blocks() != 1: raise ValueError( "[Test] Number of Blocks in reloaded BRep should be 1") if model.nb_model_boundaries() != 3: raise ValueError( "[Test] Number of Boundaries in reloaded BRep should be 3")