forked from bartvdbraak/blender
minor changes
- stub from last commit was incorrect (copied old docs) - decimator was making copy of quadric for no reason. - correct typo
This commit is contained in:
parent
f83ae34e03
commit
0c2a1500f2
@ -45,7 +45,7 @@ private:
|
|||||||
MT_Scalar c2, cd;
|
MT_Scalar c2, cd;
|
||||||
MT_Scalar d2;
|
MT_Scalar d2;
|
||||||
|
|
||||||
void init(MT_Scalar a, MT_Scalar b, MT_Scalar c, MT_Scalar d);
|
//void init(MT_Scalar a, MT_Scalar b, MT_Scalar c, MT_Scalar d);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ BuildQuadrics(
|
|||||||
MT_Vector3 target = TargetVertex(*edge_it);
|
MT_Vector3 target = TargetVertex(*edge_it);
|
||||||
|
|
||||||
LOD_Edge &e = *edge_it;
|
LOD_Edge &e = *edge_it;
|
||||||
LOD_Quadric q0 = quadrics[e.m_verts[0]];
|
const LOD_Quadric &q0 = quadrics[e.m_verts[0]];
|
||||||
const LOD_Quadric &q1 = quadrics[e.m_verts[1]];
|
const LOD_Quadric &q1 = quadrics[e.m_verts[1]];
|
||||||
|
|
||||||
e.HeapKey() = -float(q0.Evaluate(target) + q1.Evaluate(target));
|
e.HeapKey() = -float(q0.Evaluate(target) + q1.Evaluate(target));
|
||||||
|
@ -7,5 +7,5 @@ import os
|
|||||||
# Use your own script name here:
|
# Use your own script name here:
|
||||||
filename = "my_script.py"
|
filename = "my_script.py"
|
||||||
|
|
||||||
filepath = os.path.join(os.path.basename(bpy.data.filepath), filename)
|
filepath = os.path.join(os.path.dirname(bpy.data.filepath), filename)
|
||||||
exec(compile(open(filepath).read(), filepath, 'exec'))
|
exec(compile(open(filepath).read(), filepath, 'exec'))
|
||||||
|
@ -218,7 +218,7 @@ void bmo_unsubdivide_exec(BMesh *bm, BMOperator *op)
|
|||||||
BM_elem_index_set(v, VERT_INDEX_IGNORE); /* set_dirty! */
|
BM_elem_index_set(v, VERT_INDEX_IGNORE); /* set_dirty! */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* dont with selecting tagged verts */
|
/* done with selecting tagged verts */
|
||||||
|
|
||||||
|
|
||||||
/* main loop, keep tagging until we can't tag any more islands */
|
/* main loop, keep tagging until we can't tag any more islands */
|
||||||
|
Loading…
Reference in New Issue
Block a user