Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/view_map/FEdgeXDetector.cpp
| Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | void FEdgeXDetector::computeCurvatures(WXVertex *vertex) | ||||
| if (vertex->GetEdges().empty()) { | if (vertex->GetEdges().empty()) { | ||||
| if (G.debug & G_DEBUG_FREESTYLE) { | if (G.debug & G_DEBUG_FREESTYLE) { | ||||
| printf("Warning: WVertex %d has no associated edges.\n", vertex->GetId()); | printf("Warning: WVertex %d has no associated edges.\n", vertex->GetId()); | ||||
| } | } | ||||
| return; | return; | ||||
| } | } | ||||
| // CURVATURE LAYER | // CURVATURE LAYER | ||||
| // store all the curvature datas for each vertex | // store all the curvature data for each vertex | ||||
| // soc unused - real K1, K2 | // soc unused - real K1, K2 | ||||
| real cos2theta, sin2theta; | real cos2theta, sin2theta; | ||||
| Vec3r e1, n, v; | Vec3r e1, n, v; | ||||
| // one vertex curvature info : | // one vertex curvature info : | ||||
| CurvatureInfo *C; | CurvatureInfo *C; | ||||
| float radius = _sphereRadius * _meanEdgeSize; | float radius = _sphereRadius * _meanEdgeSize; | ||||
| ▲ Show 20 Lines • Show All 599 Lines • Show Last 20 Lines | |||||