mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Remove static keywords
This commit is contained in:
@@ -603,8 +603,10 @@ namespace {
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
void face_to_poly_with_holes(const cgal_face_t& face, CGAL::Polygon_with_holes_2<Kernel_>& pwh, CGAL::Aff_transformation_3<Kernel_>& place) {
|
void face_to_poly_with_holes(const cgal_face_t& face, CGAL::Polygon_with_holes_2<Kernel_>& pwh, CGAL::Aff_transformation_3<Kernel_>& place) {
|
||||||
static Kernel_::Vector_3 Z(0, 0, 1);
|
// static
|
||||||
static Kernel_::Vector_3 X(1, 0, 0);
|
Kernel_::Vector_3 Z(0, 0, 1);
|
||||||
|
// static
|
||||||
|
Kernel_::Vector_3 X(1, 0, 0);
|
||||||
|
|
||||||
auto refz = newell(face.outer);
|
auto refz = newell(face.outer);
|
||||||
refz /= std::sqrt(CGAL::to_double(refz.squared_length()));
|
refz /= std::sqrt(CGAL::to_double(refz.squared_length()));
|
||||||
@@ -1613,7 +1615,8 @@ bool CgalKernel::convert_impl(const taxonomy::boolean_result* br, ifcopenshell::
|
|||||||
if (!convert(face, f)) {
|
if (!convert(face, f)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
static taxonomy::direction3 z(0, 0, 1);
|
// static
|
||||||
|
taxonomy::direction3 z(0, 0, 1);
|
||||||
cgal_shape_t poly;
|
cgal_shape_t poly;
|
||||||
process_extrusion(f, z, 200, poly);
|
process_extrusion(f, z, 200, poly);
|
||||||
for (auto& v : vertices(poly)) {
|
for (auto& v : vertices(poly)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user