IfcAxis2Placement2D

This commit is contained in:
Ken Arroyo Ohori
2017-02-08 16:56:59 -06:00
parent 7051104bc7
commit 1755752ab7
4 changed files with 37 additions and 152 deletions
@@ -1,4 +1,4 @@
/********************************************************************************
/********************************************************************************
* *
* This file is part of IfcOpenShell. *
* *
@@ -34,15 +34,17 @@ namespace IfcGeom {
operator const cgal_placement_t& () { return trsf_; }
virtual double Value(int i, int j) const {
// Get cell from placement as 4x3 matrix as implemented in OCCT. We'll have to check exact semantics.
// TODO: Check
return CGAL::to_double(trsf_.cartesian(i, j));
}
virtual void Multiply(const ConversionResultPlacement* other) {
// Multiply matrix as implemented in OCCT. We'll have to check exact semantics.
// TODO: Check
trsf_ = ((CgalPlacement *)other)->trsf_ * trsf_;
throw std::runtime_error("Not implemented");
}
virtual void PreMultiply(const ConversionResultPlacement* other) {
// PreMultiply matrix as implemented in OCCT. We'll have to check exact semantics.
// TODO: Check
trsf_ = trsf_ * ((CgalPlacement *)other)->trsf_;
throw std::runtime_error("Not implemented");
}
virtual ConversionResultPlacement* clone() const {