Files
IfcOpenShell/src/ifcgeom/ConversionResult.cpp
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
1007 B
C++
Raw Normal View History

#include "ConversionResult.h"
#include "IfcGeomRepresentation.h"
ifcopenshell::geom::Representation::triangulation* ifcopenshell::geom::conversion_result_shape::Triangulate(const ifcopenshell::geom::settings& settings, ifcopenshell::logger& logger) const
{
2026-08-08 07:42:45 +02:00
auto t = ifcopenshell::geom::Representation::triangulation::empty(settings);
static ifcopenshell::geom::taxonomy::matrix4 iden;
Triangulate(settings, iden, t, -1, -1, logger);
return t;
}
2026-08-08 07:42:45 +02:00
using namespace ifcopenshell::geom::taxonomy;
2026-08-08 07:42:45 +02:00
void ifcopenshell::geom::conversion_result::append(ifcopenshell::geom::taxonomy::matrix4::ptr trsf) {
placement_ = make<matrix4>(placement_->ccomponents() * trsf->ccomponents());
}
2026-08-08 07:42:45 +02:00
void ifcopenshell::geom::conversion_result::prepend(ifcopenshell::geom::taxonomy::matrix4::ptr trsf) {
placement_ = make<matrix4>(trsf->ccomponents() * placement_->ccomponents());
}
2026-08-08 07:42:45 +02:00
template struct IFC_GEOM_API ifcopenshell::geom::opaque_coordinate<3>;
template struct IFC_GEOM_API ifcopenshell::geom::opaque_coordinate<4>;