def add_lines(model, builder): nb = 6 uuids = [] for i in range(nb): uuids.append(builder.add_line()) temp_line = model.line(builder.add_line()) builder.remove_line(temp_line) if model.nb_lines() != nb: raise ValueError("[Test] Section should have 6 lines") return uuids
def add_lines(model, builder): nb = 9 uuids = [] for i in range(nb): uuids.append(builder.add_line()) builder.set_line_name(uuids[-1], "line" + str(len(uuids))) temp_line = model.line(builder.add_line()) builder.remove_line(temp_line) if model.nb_lines() != nb: raise ValueError("[Test] BRep should have 9 lines") if model.line(uuids[3]).name() != "line4": raise ValueError("[Test] Wrong Line 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")