|
|
@@ -50,16 +50,7 @@ prepare_node(EggNode *node) {
|
|
|
*/
|
|
|
int EggBinner::
|
|
|
get_bin_number(const EggNode *node) {
|
|
|
- if (node->is_of_type(EggPrimitive::get_class_type())) {
|
|
|
- return (int)BN_polyset;
|
|
|
-
|
|
|
- } else if (node->is_of_type(EggGroup::get_class_type())) {
|
|
|
- const EggGroup *group = DCAST(EggGroup, node);
|
|
|
- if (group->has_lod()) {
|
|
|
- return (int)BN_lod;
|
|
|
- }
|
|
|
-
|
|
|
- } else if (node->is_of_type(EggNurbsSurface::get_class_type())) {
|
|
|
+ if (node->is_of_type(EggNurbsSurface::get_class_type())) {
|
|
|
return (int)BN_nurbs_surface;
|
|
|
|
|
|
} else if (node->is_of_type(EggNurbsCurve::get_class_type())) {
|
|
|
@@ -67,6 +58,15 @@ get_bin_number(const EggNode *node) {
|
|
|
|
|
|
} else if (node->is_of_type(EggPatch::get_class_type())) {
|
|
|
return (int)BN_patches;
|
|
|
+
|
|
|
+ } else if (node->is_of_type(EggPrimitive::get_class_type())) {
|
|
|
+ return (int)BN_polyset;
|
|
|
+
|
|
|
+ } else if (node->is_of_type(EggGroup::get_class_type())) {
|
|
|
+ const EggGroup *group = DCAST(EggGroup, node);
|
|
|
+ if (group->has_lod()) {
|
|
|
+ return (int)BN_lod;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return (int)BN_none;
|