|
Blender V4.3
|
#include <FEdgeXDetector.h>
Protected Attributes | |
| Vec3f | _Viewpoint |
| bool | _computeViewIndependent |
| real | _meanK1 |
| real | _meanKr |
| real | _minK1 |
| real | _minKr |
| real | _maxK1 |
| real | _maxKr |
| uint | _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 32 of file FEdgeXDetector.h.
|
inline |
Definition at line 34 of file FEdgeXDetector.h.
References _changes, _computeMaterialBoundaries, _computeRidgesAndValleys, _computeSuggestiveContours, _computeViewIndependent, _creaseAngle, _faceSmoothness, _kr_derivative_epsilon, _meanEdgeSize, _orthographicProjection, _pProgressBar, _pRenderMonitor, and _sphereRadius.
|
inlinevirtual |
Definition at line 54 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 171 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::OGF::NormalCycle::end(), fabs(), G, G_DEBUG_FREESTYLE, Freestyle::OGF::NormalCycle::Kmax(), Freestyle::OGF::NormalCycle::kmax(), Freestyle::OGF::NormalCycle::Kmin(), Freestyle::OGF::NormalCycle::kmin(), Freestyle::VecMat::Vec< T, N >::normalize(), printf, v, and Freestyle::VecMat::Vec3< T >::z().
Referenced by buildSmoothEdges(), and preProcessShape().
|
inline |
Definition at line 165 of file FEdgeXDetector.h.
References _changes, _faceMarks, and b.
|
inline |
Definition at line 157 of file FEdgeXDetector.h.
References _changes, _faceSmoothness, and b.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 152 of file FEdgeXDetector.h.
References _computeMaterialBoundaries, and b.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 137 of file FEdgeXDetector.h.
References _orthographicProjection, and b.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 142 of file FEdgeXDetector.h.
References _computeRidgesAndValleys, and b.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 147 of file FEdgeXDetector.h.
References _computeSuggestiveContours, and b.
Referenced by Freestyle::Controller::ComputeViewMap().
|
virtual |
Definition at line 613 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::WFace::GetVertex(), Freestyle::WVertex::GetVertex(), Freestyle::WFace::GetVertexNormal(), Freestyle::GeomUtils::intersectRayPlane(), Freestyle::CurvatureInfo::Kr, Freestyle::WFace::numberOfVertices(), Freestyle::WXFaceLayer::removeSmoothEdge(), Freestyle::WXFace::retrieveSmoothEdgesLayers(), Freestyle::Nature::SUGGESTIVE_CONTOUR, Freestyle::WXSmoothEdge::ta(), Freestyle::WXSmoothEdge::tb(), v, Freestyle::WXSmoothEdge::woea(), and Freestyle::WXSmoothEdge::woeb().
Referenced by postProcessSuggestiveContourShape().
|
virtual |
Definition at line 604 of file FEdgeXDetector.cpp.
References Freestyle::WShape::GetFaceList(), and postProcessSuggestiveContourFace().
Referenced by processShapes().
|
virtual |
Definition at line 144 of file FEdgeXDetector.cpp.
References _orthographicProjection, _Viewpoint, Freestyle::WXFace::center(), Freestyle::WFace::GetNormal(), Freestyle::WFace::GetVertex(), Freestyle::WVertex::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 108 of file FEdgeXDetector.cpp.
References _computeRidgesAndValleys, _computeSuggestiveContours, _maxK1, _maxKr, _meanEdgeSize, _meanK1, _meanKr, _minK1, _minKr, _nPoints, computeCurvatures(), Freestyle::WShape::ComputeMeanEdgeSize(), FLT_MAX, Freestyle::WShape::GetFaceList(), Freestyle::WShape::getVertexList(), and preProcessFace().
Referenced by processShapes().
|
virtual |
Definition at line 360 of file FEdgeXDetector.cpp.
References Freestyle::WXEdge::AddNature(), Freestyle::Nature::BORDER, and Freestyle::WEdge::GetaFace().
Referenced by processBorderShape().
|
virtual |
Definition at line 347 of file FEdgeXDetector.cpp.
References _computeViewIndependent, Freestyle::WShape::getEdgeList(), and ProcessBorderEdge().
Referenced by processShapes().
|
virtual |
Definition at line 386 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 372 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 423 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 404 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 23 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::WXShape::Reset(), Freestyle::ProgressBar::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 316 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 273 of file FEdgeXDetector.cpp.
References _orthographicProjection, _Viewpoint, Freestyle::WXFace::AddSmoothLayer(), FLT_MAX, Freestyle::WFace::GetVertex(), Freestyle::WVertex::GetVertex(), Freestyle::WFace::GetVertexNormal(), Freestyle::VecMat::Vec< T, N >::norm(), Freestyle::VecMat::Vec< T, N >::normalize(), Freestyle::WFace::numberOfVertices(), numVertices(), point, Freestyle::WXFaceLayer::PushDotP(), Freestyle::WXFaceLayer::setClosestPointIndex(), Freestyle::Nature::SILHOUETTE, V, and Freestyle::VecMat::Vec3< T >::z().
Referenced by processSilhouetteShape().
|
virtual |
Definition at line 256 of file FEdgeXDetector.cpp.
References Freestyle::WShape::getEdgeList(), Freestyle::WShape::GetFaceList(), ProcessSilhouetteEdge(), and ProcessSilhouetteFace().
Referenced by processShapes().
|
virtual |
Definition at line 578 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 568 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 80 of file FEdgeXDetector.h.
References _changes, _creaseAngle, angle(), cos(), and M_PI.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Definition at line 185 of file FEdgeXDetector.h.
References _pProgressBar.
|
inline |
Definition at line 190 of file FEdgeXDetector.h.
References _pRenderMonitor.
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 177 of file FEdgeXDetector.h.
References _changes, and _sphereRadius.
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 112 of file FEdgeXDetector.h.
References _changes, and _kr_derivative_epsilon.
Referenced by Freestyle::Controller::ComputeViewMap().
|
inline |
Sets the current viewpoint
Definition at line 132 of file FEdgeXDetector.h.
References _Viewpoint.
Referenced by Freestyle::Controller::ComputeViewMap().
|
protected |
Definition at line 219 of file FEdgeXDetector.h.
Referenced by enableFaceMarks(), enableFaceSmoothness(), FEdgeXDetector(), processShapes(), setCreaseAngle(), setSphereRadius(), and setSuggestiveContourKrDerivativeEpsilon().
|
protected |
Definition at line 214 of file FEdgeXDetector.h.
Referenced by enableMaterialBoundaries(), FEdgeXDetector(), and processShapes().
|
protected |
Definition at line 212 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), enableRidgesAndValleysFlag(), FEdgeXDetector(), preProcessShape(), and processShapes().
|
protected |
Definition at line 213 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), enableSuggestiveContours(), FEdgeXDetector(), preProcessShape(), and processShapes().
|
protected |
Definition at line 201 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), FEdgeXDetector(), processBorderShape(), processCreaseShape(), processMaterialBoundaryShape(), processRidgesAndValleysShape(), and processShapes().
|
protected |
Definition at line 218 of file FEdgeXDetector.h.
Referenced by FEdgeXDetector(), ProcessCreaseEdge(), and setCreaseAngle().
|
protected |
Definition at line 216 of file FEdgeXDetector.h.
Referenced by enableFaceMarks().
|
protected |
Definition at line 215 of file FEdgeXDetector.h.
Referenced by enableFaceSmoothness(), and FEdgeXDetector().
|
protected |
Definition at line 221 of file FEdgeXDetector.h.
Referenced by FEdgeXDetector(), postProcessSuggestiveContourFace(), and setSuggestiveContourKrDerivativeEpsilon().
|
protected |
Definition at line 206 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 207 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 209 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), FEdgeXDetector(), and preProcessShape().
|
protected |
Definition at line 202 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 203 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), computeCurvatures(), preProcessShape(), and ProcessSuggestiveContourFace().
|
protected |
Definition at line 204 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 205 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 208 of file FEdgeXDetector.h.
Referenced by buildSmoothEdges(), computeCurvatures(), and preProcessShape().
|
protected |
Definition at line 210 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), enableOrthographicProjection(), FEdgeXDetector(), preProcessFace(), and ProcessSilhouetteFace().
|
protected |
Definition at line 223 of file FEdgeXDetector.h.
Referenced by FEdgeXDetector(), processShapes(), and setProgressBar().
|
protected |
Definition at line 224 of file FEdgeXDetector.h.
Referenced by FEdgeXDetector(), processShapes(), and setRenderMonitor().
|
protected |
Definition at line 217 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), FEdgeXDetector(), and setSphereRadius().
|
protected |
Definition at line 196 of file FEdgeXDetector.h.
Referenced by computeCurvatures(), preProcessFace(), ProcessSilhouetteFace(), and setViewpoint().