mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
24 lines
930 B
C++
24 lines
930 B
C++
#include "ConversionResult.h"
|
|
#include "IfcGeomRepresentation.h"
|
|
|
|
IfcGeom::Representation::Triangulation* IfcGeom::ConversionResultShape::Triangulate(const ifcopenshell::geometry::Settings& settings, Logger& logger) const
|
|
{
|
|
auto t = IfcGeom::Representation::Triangulation::empty(settings);
|
|
static ifcopenshell::geometry::taxonomy::matrix4 iden;
|
|
Triangulate(settings, iden, t, -1, -1, logger);
|
|
return t;
|
|
}
|
|
|
|
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());
|
|
}
|
|
|
|
template struct IFC_GEOM_API IfcGeom::OpaqueCoordinate<3>;
|
|
template struct IFC_GEOM_API IfcGeom::OpaqueCoordinate<4>;
|