mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Lingering changes after conflict resolution
This commit is contained in:
@@ -397,7 +397,7 @@ int IfcGeom::Representation::Triangulation::addVertex(int item_id, int material_
|
|||||||
const double Z = convert ? (pZ /unit_magnitude) : pZ;
|
const double Z = convert ? (pZ /unit_magnitude) : pZ;
|
||||||
int i = (int)_verts.size() / 3;
|
int i = (int)_verts.size() / 3;
|
||||||
if (settings().get<ifcopenshell::geometry::settings::WeldVertices>().get()) {
|
if (settings().get<ifcopenshell::geometry::settings::WeldVertices>().get()) {
|
||||||
const VertexKey key = std::make_tuple(item_index, material_index, X, Y, Z);
|
const VertexKey key = std::make_tuple(item_id, material_index, X, Y, Z);
|
||||||
typename VertexKeyMap::const_iterator it = welds.find(key);
|
typename VertexKeyMap::const_iterator it = welds.find(key);
|
||||||
if (it != welds.end()) return it->second;
|
if (it != welds.end()) return it->second;
|
||||||
i = (int)(welds.size() + weld_offset_);
|
i = (int)(welds.size() + weld_offset_);
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
%extend IfcGeom::Representation::Triangulation {
|
%extend IfcGeom::Representation::Triangulation {
|
||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
# Hide the getters with read-only property implementations
|
# Hide the getters with read-only property implementations
|
||||||
id = property(id)
|
id = property(id)
|
||||||
faces = property(faces)
|
faces = property(faces)
|
||||||
@@ -297,8 +297,8 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
materials = property(materials)
|
materials = property(materials)
|
||||||
verts = property(verts)
|
verts = property(verts)
|
||||||
normals = property(normals)
|
normals = property(normals)
|
||||||
item_ids = property(item_ids)
|
item_ids = property(item_ids)
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
%extend IfcGeom::Representation::Serialization {
|
%extend IfcGeom::Representation::Serialization {
|
||||||
|
|||||||
Reference in New Issue
Block a user