def test_do_not_write_elevation_group_code(): solid = Solid.from_text(ELEVATION) collector = TagCollector(dxfversion=DXF12) solid.export_dxf(collector) # Elevation tag should be written: assert any(tag[0] == 38 for tag in collector.tags) is False
def test_elevation_group_code_support(): solid = Solid.from_text(ELEVATION) # elevation data is copied to z-axis of vertices: assert solid.dxf.hasattr('elevation') is False vertices = solid.vertices() assert vertices[0] == (0, 0, 2)