OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats Struct Reference

Public Member Functions

 Facestats (const std::array< Vec3f, 3 > &triangle)

Public Attributes

Vec3f normal
double area

Detailed Description

Constructor & Destructor Documentation

◆ Facestats()

Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats::Facestats ( const std::array< Vec3f, 3 > & triangle)
inlineexplicit
81 {
82 Vec3f U = triangle[1] - triangle[0];
83 Vec3f V = triangle[2] - triangle[0];
84 Vec3f C = U.cross(V);
85 normal = C.normalized();
86 area = 0.5 * C.norm();
87 }
Eigen::Matrix< float, 3, 1, Eigen::DontAlign > Vec3f
Definition Point.hpp:65

References area, and normal.

Member Data Documentation

◆ area

◆ normal


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/Rotfinder.cpp