Model¶
- class py3dm.Model¶
Python bindings for the openNURBS
ONX_Modelclass.ONX_Model: pedagogical example of all the things in an OpenNURBS 3dm archive. The openNURBS examples use ONX_Model to store the information read from 3dm archives.- property curve_table: CurveTable¶
- property layer_table: LayerTable¶
- property point_table: PointTable¶
- new_revision() int¶
Returns the updated revision count.
Notes
If the current revision is set to
0,ON_3dmRevisionHistoryis set to empty, overriding the current settings. Refer to../tests/test_model.pyto understand the proper setup order.
- read(path_to_file: str) bool¶
Reads an openNURBS archive and loads the information in this model. Before trying to read the 3dm file, the current model is reset!