| 486 | } |
| 487 | |
| 488 | OpaqueNumber* ifcopenshell::geometry::CgalShape::CgalShape::length() |
| 489 | { |
| 490 | to_poly(); |
| 491 | Kernel_::FT len = 0; |
| 492 | for (auto it = shape_->edges_begin(); it != shape_->edges_end(); ++it) { |
| 493 | len += CGAL::approximate_sqrt(CGAL::Segment_3<Kernel_>( |
| 494 | it->vertex()->point(), |
| 495 | it->next()->vertex()->point() |
| 496 | ).squared_length()); |
| 497 | } |
| 498 | return new NumberType(len); |
| 499 | } |
| 500 | |
| 501 | OpaqueNumber* ifcopenshell::geometry::CgalShape::area() |
| 502 | { |
nothing calls this directly
no test coverage detected