Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
QuimMoya committed Oct 1, 2024
1 parent 2ff5976 commit 1b01eeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cpp/geometry/IfcGeometryProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace webifc::geometry
return _coordinationMatrix;
}

IfcComposedMesh IfcGeometryProcessor::GetMesh(uint32_t expressID, uint32_t nestLevel)
IfcComposedMesh IfcGeometryProcessor::GetMesh(uint32_t expressID)
{
spdlog::debug("[GetMesh({})]",expressID);
auto lineType = _loader.GetLineType(expressID);
Expand Down Expand Up @@ -321,8 +321,8 @@ namespace webifc::geometry
uint32_t firstOperandID = _loader.GetRefArgument();
uint32_t secondOperandID = _loader.GetRefArgument();

auto firstMesh = GetMesh(firstOperandID, nestLevel + 1);
auto secondMesh = GetMesh(secondOperandID, nestLevel + 1);
auto firstMesh = GetMesh(firstOperandID);
auto secondMesh = GetMesh(secondOperandID);

auto origin = GetOrigin(firstMesh, _expressIDToGeometry);
auto normalizeMat = glm::translate(-origin);
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/geometry/IfcGeometryProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace webifc::geometry
IfcGeometry &GetGeometry(uint32_t expressID);
IfcGeometryLoader GetLoader() const;
IfcFlatMesh GetFlatMesh(uint32_t expressID);
IfcComposedMesh GetMesh(uint32_t expressID, uint32_t nestLevel = 0);
IfcComposedMesh GetMesh(uint32_t expressID);
void SetTransformation(const std::array<double, 16> &val);
std::array<double, 16> GetFlatCoordinationMatrix() const;
glm::dmat4 GetCoordinationMatrix() const;
Expand Down

0 comments on commit 1b01eeb

Please sign in to comment.