2023-11-02 09:04:34 +01:00
|
|
|
#include "ConversionResult.h"
|
|
|
|
|
#include "IfcGeomRepresentation.h"
|
|
|
|
|
|
2026-06-10 18:30:54 +02:00
|
|
|
IfcGeom::Representation::Triangulation* IfcGeom::ConversionResultShape::Triangulate(const ifcopenshell::geometry::Settings& settings, Logger& logger) const
|
2023-11-02 09:04:34 +01:00
|
|
|
{
|
|
|
|
|
auto t = IfcGeom::Representation::Triangulation::empty(settings);
|
|
|
|
|
static ifcopenshell::geometry::taxonomy::matrix4 iden;
|
2026-06-10 18:30:54 +02:00
|
|
|
Triangulate(settings, iden, t, -1, -1, logger);
|
2023-11-02 09:04:34 +01:00
|
|
|
return t;
|
|
|
|
|
}
|
2023-12-05 21:11:36 +01:00
|
|
|
|
|
|
|
|
using namespace ifcopenshell::geometry::taxonomy;
|
|
|
|
|
|
|
|
|
|
void IfcGeom::ConversionResult::append(ifcopenshell::geometry::taxonomy::matrix4::ptr trsf) {
|
|
|
|
|
placement_ = make<matrix4>(placement_->ccomponents() * trsf->ccomponents());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void IfcGeom::ConversionResult::prepend(ifcopenshell::geometry::taxonomy::matrix4::ptr trsf) {
|
|
|
|
|
placement_ = make<matrix4>(trsf->ccomponents() * placement_->ccomponents());
|
|
|
|
|
}
|
2023-12-13 16:43:33 +01:00
|
|
|
|
2025-09-26 14:24:49 +02:00
|
|
|
template struct IFC_GEOM_API IfcGeom::OpaqueCoordinate<3>;
|
2026-06-22 10:38:25 +02:00
|
|
|
template struct IFC_GEOM_API IfcGeom::OpaqueCoordinate<4>;
|