Move id to IfcGeom::Representation::Representation and document it

as it's a common attribute for all 3 Representation subclasses we have
This commit is contained in:
Andrej730
2024-09-17 18:25:41 +05:00
parent 5860c3fe50
commit 8f7949808a
3 changed files with 22 additions and 20 deletions
+7 -2
View File
@@ -681,7 +681,6 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
%pythoncode %{
# Hide the getters with read-only property implementations
id = property(id)
faces = property(faces)
edges = property(edges)
material_ids = property(material_ids)
@@ -700,10 +699,16 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
%}
};
%extend IfcGeom::Representation::Serialization {
%extend IfcGeom::Representation::Representation {
%pythoncode %{
# Hide the getters with read-only property implementations
id = property(id)
%}
};
%extend IfcGeom::Representation::Serialization {
%pythoncode %{
# Hide the getters with read-only property implementations
brep_data = property(brep_data)
surface_styles = property(surface_styles)
surface_style_ids = property(surface_style_ids)