Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp
| Show First 20 Lines • Show All 2,316 Lines • ▼ Show 20 Lines | bool operator()(intersection *x, intersection *y) | ||||
| if (tx > ty) { | if (tx > ty) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| }; | }; | ||||
| struct silhouette_binary_rule : public binary_rule<segment, segment> { | struct silhouette_binary_rule : public binary_rule<segment, segment> { | ||||
| silhouette_binary_rule() | |||||
| { | |||||
| } | |||||
| bool operator()(segment &s1, segment &s2) override | bool operator()(segment &s1, segment &s2) override | ||||
| { | { | ||||
| FEdge *f1 = s1.edge(); | FEdge *f1 = s1.edge(); | ||||
| FEdge *f2 = s2.edge(); | FEdge *f2 = s2.edge(); | ||||
| if ((!(((f1)->getNature() & Nature::SILHOUETTE) || ((f1)->getNature() & Nature::BORDER))) && | if ((!(((f1)->getNature() & Nature::SILHOUETTE) || ((f1)->getNature() & Nature::BORDER))) && | ||||
| (!(((f2)->getNature() & Nature::SILHOUETTE) || ((f2)->getNature() & Nature::BORDER)))) { | (!(((f2)->getNature() & Nature::SILHOUETTE) || ((f2)->getNature() & Nature::BORDER)))) { | ||||
| return false; | return false; | ||||
| ▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines | |||||