|
Blender
V2.93
|
#include <FEdgeXDetector.h>
Protected Attributes | |
| Vec3f | _Viewpoint |
| bool | _computeViewIndependent |
| real | _meanK1 |
| real | _meanKr |
| real | _minK1 |
| real | _minKr |
| real | _maxK1 |
| real | _maxKr |
| unsigned | _nPoints |
| real | _meanEdgeSize |
| bool | _orthographicProjection |
| bool | _computeRidgesAndValleys |
| bool | _computeSuggestiveContours |
| bool | _computeMaterialBoundaries |
| bool | _faceSmoothness |
| bool | _faceMarks |
| float | _sphereRadius |
| float | _creaseAngle |
| bool | _changes |
| float | _kr_derivative_epsilon |
| ProgressBar * | _pProgressBar |
| RenderMonitor * | _pRenderMonitor |
This class takes as input a WXEdge structure and fills it
Definition at line 46 of file FEdgeXDetector.h.
|
inline |
Definition at line 48 of file FEdgeXDetector.h.
References NULL.
|
inlinevirtual |
Definition at line 68 of file FEdgeXDetector.h.
|
virtual |
Definition at line 769 of file FEdgeXDetector.cpp.
References _computeRidgesAndValleys, _computeSuggestiveContours, _meanK1, _meanKr, _nPoints, computeCurvatures(), Freestyle::WShape::GetFaceList(), and Freestyle::WShape::getVertexList().
Referenced by processShapes().
|
virtual |
Definition at line 180 of file FEdgeXDetector.cpp.
References _computeViewIndependent, _maxK1, _maxKr, _meanEdgeSize, _meanK1, _meanKr, _minK1, _minKr, _nPoints, _orthographicProjection, _sphereRadius, _Viewpoint, Freestyle::OGF::NormalCycle::begin(), C, Freestyle::OGF::compute_curvature_tensor(), Freestyle::OGF::compute_curvature_tensor_one_ring(), Freestyle::WXVertex::curvatures(), Freestyle::OGF::NormalCycle::end(), fabs(), G, G_DEBUG_FREESTYLE, Freestyle::WVertex::GetEdges(), Freestyle::WVertex::GetId(), Freestyle::WVertex::GetVertex(), Freestyle::OGF::NormalCycle::Kmax(), Freestyle::OGF::NormalCycle::kmax(), Freestyle::OGF::NormalCycle::Kmin(), Freestyle::OGF::NormalCycle::kmin(), Freestyle::VecMat::Vec< T, N >::normalize(), Freestyle::WXVertex::setCurvatures(), v, and Freestyle::VecMat::Vec3< T >::z().
Referenced by buildSmoothEdges(), and preProcessShape().
|
inline |
Definition at line 181 of file FEdgeXDetector.h.
|
inline |
Definition at line 173 of file FEdgeXDetector.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 168 of file FEdgeXDetector.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 153 of file FEdgeXDetector.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 158 of file FEdgeXDetector.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 163 of file FEdgeXDetector.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
virtual |
Definition at line 616 of file FEdgeXDetector.cpp.
References _kr_derivative_epsilon, Freestyle::WXVertex::curvatures(), Freestyle::GeomUtils::DO_INTERSECT, Freestyle::WOEdge::GetaVertex(), Freestyle::WOEdge::GetbVertex(), Freestyle::WFace::GetIndex(), Freestyle::WFace::getOppositeEdge(), Freestyle::WXFaceLayer::getSmoothEdge(), Freestyle::WOEdge::GetVec(), Freestyle::WVertex::GetVertex(), Freestyle::WFace::GetVertex(), Freestyle::WFace::GetVertexNormal(), Freestyle::GeomUtils::intersectRayPlane(), Freestyle::CurvatureInfo::Kr, Freestyle::WFace::numberOfVertices(), Freestyle::WXFaceLayer::removeSmoothEdge(), Freestyle::WXFace::retrieveSmoothEdgesLayers(), Freestyle::Nature::SUGGESTIVE_CONTOUR, t, Freestyle::WXSmoothEdge::ta(), Freestyle::WXSmoothEdge::tb(), v, Freestyle::WXSmoothEdge::woea(), and Freestyle::WXSmoothEdge::woeb().
Referenced by postProcessSuggestiveContourShape().
|
virtual |
Definition at line 607 of file FEdgeXDetector.cpp.
References Freestyle::WShape::GetFaceList(), and postProcessSuggestiveContourFace().
Referenced by processShapes().
|
virtual |
Definition at line 153 of file FEdgeXDetector.cpp.
References _orthographicProjection, _Viewpoint, Freestyle::WXFace::center(), Freestyle::WFace::GetNormal(), Freestyle::WVertex::GetVertex(), Freestyle::WFace::GetVertex(), N, Freestyle::VecMat::Vec< T, N >::norm(), Freestyle::WXFace::setDotP(), Freestyle::WXFace::setZ(), V, and Freestyle::VecMat::Vec3< T >::z().
Referenced by preProcessShape().
|
virtual |
Definition at line 118 of file FEdgeXDetector.cpp.
References _computeRidgesAndValleys, _computeSuggestiveContours, _maxK1, _maxKr, _meanEdgeSize, _meanK1, _meanKr, _minK1, _minKr, _nPoints, computeCurvatures(), Freestyle::WShape::ComputeMeanEdgeSize(), Freestyle::WShape::GetFaceList(), Freestyle::WShape::getVertexList(), and preProcessFace().
Referenced by processShapes().
|
virtual |
Definition at line 369 of file FEdgeXDetector.cpp.
References Freestyle::WXEdge::AddNature(), Freestyle::Nature::BORDER, and Freestyle::WEdge::GetaFace().
Referenced by processBorderShape().
|
virtual |
Definition at line 356 of file FEdgeXDetector.cpp.
References _computeViewIndependent, Freestyle::WShape::getEdgeList(), and ProcessBorderEdge().
Referenced by processShapes().
|
virtual |
Definition at line 395 of file FEdgeXDetector.cpp.
References _creaseAngle, Freestyle::WXEdge::AddNature(), Freestyle::Nature::BORDER, Freestyle::Nature::CREASE, Freestyle::WOEdge::GetaFace(), Freestyle::WEdge::GetaOEdge(), Freestyle::WEdge::GetaVertex(), Freestyle::WOEdge::GetbFace(), Freestyle::WFace::GetVertexNormal(), and Freestyle::WXEdge::nature().
Referenced by processCreaseShape().
|
virtual |
Definition at line 381 of file FEdgeXDetector.cpp.
References _computeViewIndependent, Freestyle::WShape::getEdgeList(), and ProcessCreaseEdge().
Referenced by processShapes().
|
virtual |
Definition at line 760 of file FEdgeXDetector.cpp.
References Freestyle::WXEdge::AddNature(), Freestyle::Nature::EDGE_MARK, and Freestyle::WEdge::GetMark().
Referenced by processEdgeMarksShape().
|
virtual |
Definition at line 750 of file FEdgeXDetector.cpp.
References Freestyle::WShape::getEdgeList(), and ProcessEdgeMarks().
Referenced by processShapes().
|
virtual |
Definition at line 738 of file FEdgeXDetector.cpp.
References Freestyle::WXEdge::AddNature(), Freestyle::WFace::frs_materialIndex(), Freestyle::WEdge::GetaFace(), Freestyle::WEdge::GetbFace(), and Freestyle::Nature::MATERIAL_BOUNDARY.
Referenced by processMaterialBoundaryShape().
|
virtual |
Definition at line 725 of file FEdgeXDetector.cpp.
References _computeViewIndependent, Freestyle::WShape::getEdgeList(), and ProcessMaterialBoundaryEdge().
Referenced by processShapes().
|
virtual |
Definition at line 432 of file FEdgeXDetector.cpp.
References Freestyle::WXFace::AddSmoothLayer(), Freestyle::WXVertex::curvatures(), Freestyle::WXFaceLayer::dotP(), fabs(), Freestyle::WFace::GetVertex(), Freestyle::CurvatureInfo::K1, Freestyle::WXFaceLayer::nPosDotP(), Freestyle::WFace::numberOfVertices(), numVertices(), Freestyle::WXFaceLayer::PushDotP(), Freestyle::WXFaceLayer::ReplaceDotP(), Freestyle::Nature::RIDGE, and Freestyle::Nature::VALLEY.
Referenced by processRidgesAndValleysShape().
|
virtual |
Definition at line 413 of file FEdgeXDetector.cpp.
References _computeViewIndependent, Freestyle::WShape::GetFaceList(), and ProcessRidgeFace().
Referenced by processShapes().
|
virtual |
Process shapes from a WingedEdge containing a list of WShapes
Definition at line 33 of file FEdgeXDetector.cpp.
References _changes, _computeMaterialBoundaries, _computeRidgesAndValleys, _computeSuggestiveContours, _computeViewIndependent, _pProgressBar, _pRenderMonitor, buildSmoothEdges(), Freestyle::WXFace::Clear(), Freestyle::WShape::GetFaceList(), Freestyle::ProgressBar::getProgress(), Freestyle::WingedEdge::getWShapes(), norm(), postProcessSuggestiveContourShape(), preProcessShape(), processBorderShape(), processCreaseShape(), processEdgeMarksShape(), processMaterialBoundaryShape(), processRidgesAndValleysShape(), processSilhouetteShape(), processSuggestiveContourShape(), Freestyle::ProgressBar::reset(), Freestyle::WXShape::Reset(), Freestyle::WXShape::setComputeViewIndependentFlag(), Freestyle::ProgressBar::setLabelText(), Freestyle::ProgressBar::setProgress(), Freestyle::ProgressBar::setTotalSteps(), and Freestyle::RenderMonitor::testBreak().
Referenced by Freestyle::Controller::ComputeViewMap().
|
virtual |
Definition at line 325 of file FEdgeXDetector.cpp.
References Freestyle::WXEdge::AddNature(), Freestyle::Nature::BORDER, Freestyle::WXFace::front(), Freestyle::WOEdge::GetaFace(), Freestyle::WEdge::GetaOEdge(), Freestyle::WEdge::GetaVertex(), Freestyle::WOEdge::GetbFace(), Freestyle::WFace::GetVertexNormal(), Freestyle::WXEdge::nature(), Freestyle::WXEdge::setOrder(), and Freestyle::Nature::SILHOUETTE.
Referenced by processSilhouetteShape().
|
virtual |
Definition at line 282 of file FEdgeXDetector.cpp.
References _orthographicProjection, _Viewpoint, Freestyle::WXFace::AddSmoothLayer(), Freestyle::WVertex::GetVertex(), Freestyle::WFace::GetVertex(), Freestyle::WFace::GetVertexNormal(), Freestyle::VecMat::Vec< T, N >::norm(), normal, Freestyle::WFace::numberOfVertices(), numVertices(), Freestyle::WXFaceLayer::PushDotP(), Freestyle::WXFaceLayer::setClosestPointIndex(), Freestyle::Nature::SILHOUETTE, V, and Freestyle::VecMat::Vec3< T >::z().
Referenced by processSilhouetteShape().
|
virtual |
Definition at line 265 of file FEdgeXDetector.cpp.
References Freestyle::WShape::getEdgeList(), Freestyle::WShape::GetFaceList(), ProcessSilhouetteEdge(), and ProcessSilhouetteFace().
Referenced by processShapes().
|
virtual |
Definition at line 582 of file FEdgeXDetector.cpp.
References _meanKr, Freestyle::WXFace::AddSmoothLayer(), Freestyle::WXVertex::curvatures(), Freestyle::WXFaceLayer::dotP(), fabs(), Freestyle::WFace::GetVertex(), Freestyle::CurvatureInfo::Kr, Freestyle::WXFaceLayer::nPosDotP(), Freestyle::WFace::numberOfVertices(), numVertices(), Freestyle::WXFaceLayer::PushDotP(), Freestyle::WXFaceLayer::ReplaceDotP(), and Freestyle::Nature::SUGGESTIVE_CONTOUR.
Referenced by processSuggestiveContourShape().
|
virtual |
Definition at line 572 of file FEdgeXDetector.cpp.
References Freestyle::WShape::GetFaceList(), and ProcessSuggestiveContourFace().
Referenced by processShapes().
|
inline |
Sets the minimum angle for detecting crease edges
| angle | The angular threshold in degrees (between 0 and 180) for detecting crease edges. An edge is considered a crease edge if the angle between two faces sharing the edge is smaller than the given threshold. |
Definition at line 96 of file FEdgeXDetector.h.
References angle(), KDL::cos(), and M_PI.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 201 of file FEdgeXDetector.h.
|
inline |
Definition at line 206 of file FEdgeXDetector.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Sets the radius of the geodesic sphere around each vertex (for the curvature computation)
| r | The radius of the sphere expressed as a ratio of the mean edge size |
Definition at line 193 of file FEdgeXDetector.h.
References r.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Sets the minimal derivative of the radial curvature for suggestive contours
| dkr | The minimal derivative of the radial curvature |
Definition at line 128 of file FEdgeXDetector.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Sets the current viewpoint
Definition at line 148 of file FEdgeXDetector.h.
Referenced by Freestyle::Controller::ComputeViewMap().
|
protected |
Definition at line 235 of file FEdgeXDetector.h.
Referenced by processShapes().
|
protected |
Definition at line 230 of file FEdgeXDetector.h.
Referenced by processShapes().
|
protected |
Definition at line 228 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), preProcessShape(), and processShapes().
|
protected |
Definition at line 229 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), preProcessShape(), and processShapes().
|
protected |
Definition at line 217 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), processBorderShape(), processCreaseShape(), processMaterialBoundaryShape(), processRidgesAndValleysShape(), and processShapes().
|
protected |
Definition at line 234 of file FEdgeXDetector.h.
Referenced by ProcessCreaseEdge().
|
protected |
Definition at line 232 of file FEdgeXDetector.h.
|
protected |
Definition at line 231 of file FEdgeXDetector.h.
|
protected |
Definition at line 237 of file FEdgeXDetector.h.
Referenced by postProcessSuggestiveContourFace().
|
protected |
Definition at line 222 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 223 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 225 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 218 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 219 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), computeCurvatures(), preProcessShape(), and ProcessSuggestiveContourFace().
|
protected |
Definition at line 220 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 221 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 224 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 226 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), preProcessFace(), and ProcessSilhouetteFace().
|
protected |
Definition at line 239 of file FEdgeXDetector.h.
Referenced by processShapes().
|
protected |
Definition at line 240 of file FEdgeXDetector.h.
Referenced by processShapes().
|
protected |
Definition at line 233 of file FEdgeXDetector.h.
Referenced by computeCurvatures().
|
protected |
Definition at line 212 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), preProcessFace(), and ProcessSilhouetteFace().