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-08-14 11:58:17 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2015-07-20 00:18:01 +0300
commitee263c25669d3450dbb3f4b4112ebb9a8d53fea4 (patch)
treedb7a03fb42759e28d7974f06029f5aca5359ab7e /source/blender/freestyle
parent1f748d232493b21007607525d2aae458b59c7595 (diff)
Freestyle: Removed tesselated forms of silhouettes for displaying in the UI.
The tesselated silhouettes were not used in Freestyle for Blender at all.
Diffstat (limited to 'source/blender/freestyle')
-rw-r--r--source/blender/freestyle/intern/application/Controller.cpp20
-rw-r--r--source/blender/freestyle/intern/application/Controller.h4
2 files changed, 13 insertions, 11 deletions
diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp
index e7eb25f3e62..8983a781237 100644
--- a/source/blender/freestyle/intern/application/Controller.cpp
+++ b/source/blender/freestyle/intern/application/Controller.cpp
@@ -88,14 +88,14 @@ Controller::Controller()
_RootNode = new NodeGroup;
_RootNode->addRef();
- _SilhouetteNode = NULL;
#if 0
+ _SilhouetteNode = NULL;
_ProjectedSilhouette = NULL;
_VisibleProjectedSilhouette = NULL;
-#endif
_DebugNode = new NodeGroup;
_DebugNode->addRef();
+#endif
_winged_edge = NULL;
@@ -142,6 +142,7 @@ Controller::~Controller()
delete _RootNode;
}
+#if 0
if (NULL != _SilhouetteNode) {
int ref = _SilhouetteNode->destroy();
if (0 == ref)
@@ -153,6 +154,7 @@ Controller::~Controller()
if (0 == ref)
delete _DebugNode;
}
+#endif
if (_winged_edge) {
delete _winged_edge;
@@ -409,6 +411,7 @@ void Controller::DeleteWingedEdge()
void Controller::DeleteViewMap(bool freeCache)
{
+#if 0
_pView->DetachSilhouette();
if (NULL != _SilhouetteNode) {
int ref = _SilhouetteNode->destroy();
@@ -418,7 +421,6 @@ void Controller::DeleteViewMap(bool freeCache)
}
}
-#if 0
if (NULL != _ProjectedSilhouette) {
int ref = _ProjectedSilhouette->destroy();
if (0 == ref) {
@@ -433,7 +435,6 @@ void Controller::DeleteViewMap(bool freeCache)
_VisibleProjectedSilhouette = NULL;
}
}
-#endif
_pView->DetachDebug();
if (NULL != _DebugNode) {
@@ -441,6 +442,7 @@ void Controller::DeleteViewMap(bool freeCache)
if (0 == ref)
_DebugNode->addRef();
}
+#endif
if (NULL != _ViewMap) {
if (freeCache || !_EnableViewMapCache) {
@@ -563,14 +565,14 @@ void Controller::ComputeViewMap()
vmBuilder.setGrid(&_Grid);
vmBuilder.setRenderMonitor(_pRenderMonitor);
+#if 0
// Builds a tesselated form of the silhouette for display purpose:
//---------------------------------------------------------------
ViewMapTesselator3D sTesselator3d;
-#if 0
ViewMapTesselator2D sTesselator2d;
sTesselator2d.setNature(_edgeTesselationNature);
-#endif
sTesselator3d.setNature(_edgeTesselationNature);
+#endif
if (G.debug & G_DEBUG_FREESTYLE) {
cout << "\n=== Building the view map ===" << endl;
@@ -584,12 +586,12 @@ void Controller::ComputeViewMap()
printf("ViewMap edge count : %i\n", _ViewMap->viewedges_size());
}
+#if 0
// Tesselate the 3D edges:
_SilhouetteNode = sTesselator3d.Tesselate(_ViewMap);
_SilhouetteNode->addRef();
// Tesselate 2D edges
-#if 0
_ProjectedSilhouette = sTesselator2d.Tesselate(_ViewMap);
_ProjectedSilhouette->addRef();
#endif
@@ -599,13 +601,13 @@ void Controller::ComputeViewMap()
printf("ViewMap building : %lf\n", duration);
}
- _pView->AddSilhouette(_SilhouetteNode);
#if 0
+ _pView->AddSilhouette(_SilhouetteNode);
_pView->AddSilhouette(_WRoot);
_pView->Add2DSilhouette(_ProjectedSilhouette);
_pView->Add2DVisibleSilhouette(_VisibleProjectedSilhouette);
-#endif
_pView->AddDebug(_DebugNode);
+#endif
// Draw the steerable density map:
//--------------------------------
diff --git a/source/blender/freestyle/intern/application/Controller.h b/source/blender/freestyle/intern/application/Controller.h
index d024e618e95..22eaaf5082f 100644
--- a/source/blender/freestyle/intern/application/Controller.h
+++ b/source/blender/freestyle/intern/application/Controller.h
@@ -178,11 +178,10 @@ private:
// Winged-Edge structure
WingedEdge *_winged_edge;
- // Silhouette structure:
#if 0
+ // Silhouette structure:
std::vector<SShape*> _SShapes;
NodeGroup *_SRoot;
-#endif
// Silhouette
NodeGroup *_SilhouetteNode;
@@ -191,6 +190,7 @@ private:
// more Debug info
NodeGroup *_DebugNode;
+#endif
// debug
//NodeUser<ViewMap> *_ViewMapNode; // FIXME