Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-04-04 12:01:10 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-04-04 18:47:31 +0400
commit62bf22e27b47fd929e54c4e127a1bba02faf5f34 (patch)
tree4214ca2c050a8f281140e49fda9b2590b42d98e5 /source/blender/freestyle/intern/stroke/Curve.cpp
parent685d785c98c9b1ee3e7da6e1a148ae2b911e8998 (diff)
Freestyle: Removed SVertex _curvatureFredo and _directionFredo and their getter/setter methods..
These data elements are undocumented and of little use. For now they are commented out in the implementation in favor of less memory consumption, and a very limited support for these data components in the Python API was just removed (should be easy to recover).
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Curve.cpp')
-rw-r--r--source/blender/freestyle/intern/stroke/Curve.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/stroke/Curve.cpp b/source/blender/freestyle/intern/stroke/Curve.cpp
index af9c8c2869d..e5dc27a0c57 100644
--- a/source/blender/freestyle/intern/stroke/Curve.cpp
+++ b/source/blender/freestyle/intern/stroke/Curve.cpp
@@ -475,7 +475,6 @@ real CurvePoint::curvature2d_as_angle() const
return __A->curvature2d_as_angle();
return ((1 - _t2d) * __A->curvature2d_as_angle() + _t2d * __B->curvature2d_as_angle());
}
-#endif
real CurvePoint::curvatureFredo() const
{
@@ -494,6 +493,7 @@ Vec2d CurvePoint::directionFredo () const
return __A->directionFredo();
return ((1 - _t2d) * __A->directionFredo() + _t2d * __B->directionFredo());
}
+#endif
/**********************************/
/* */
@@ -813,14 +813,12 @@ real Curve::local_average_density(float sigma, int iCombination ) const
return result;
#endif
}
-#endif
/* UNUSED */
// #define EPS_CURVA_DIR 0.01
void Curve::computeCurvatureAndOrientation ()
{
-#if 0
const_vertex_iterator v = vertices_begin(), vend = vertices_end(), v2, prevV, v0;
Vec2d p0, p1, p2;
Vec3r p;
@@ -924,7 +922,7 @@ void Curve::computeCurvatureAndOrientation ()
p0 = p1;
p1 = p2;
}
-#endif
}
+#endif
} /* namespace Freestyle */