~mht/surcut

434b8196 — Martin Hafskjold Thoresen 5 years ago master
Add license
0dbc35cd — Martin Hafskjold Thoresen 5 years ago
Only optionally do the force cutoff thing

The scaling is still very off - bunny worked fine with the previous
cutoff, but fertility did not.
16669cc4 — Martin Hafskjold Thoresen 5 years ago
Printing and mesh evaluation continues
6d241562 — Martin Hafskjold Thoresen 5 years ago
Fix sphere sampling function, and take iteration count from cmdline
438b40d6 — Martin Hafskjold Thoresen 5 years ago
Somewhat working evaluate
cb319931 — Martin Hafskjold Thoresen 5 years ago
Refactor geom.proc from viewing

This in order to make `evaluate.cpp`, with which we try to find good
models.
e8012813 — Martin Hafskjold Thoresen 5 years ago
Automate updating rest state after ARAP loop if converge
bbf8ee4f — Martin Hafskjold Thoresen 5 years ago
Add screenshot with antialiasing

Somehow, the anti aliasing with GLFW doesn't work (also doesn't work
with a clean GLFW project - weird opengl driver on linux?) Since we just
wanted nice screenshots anyways, this is a decent workaround.
32b36a44 — Martin Hafskjold Thoresen 5 years ago
Use colors for force magnitude instead of lengths
1248699f — Martin Hafskjold Thoresen 5 years ago
Add floater for force scale
852da4cc — Martin Hafskjold Thoresen 5 years ago
Fix NaN case where removal dir and face normal were oposite
93d5da94 — Martin Hafskjold Thoresen 5 years ago
Remove mesh globals
a4ac05d4 — Martin Hafskjold Thoresen 5 years ago
Intersect with the first triangle, and set force to a vertex

Not sure the vertex is really what we want, but here it is..
0a24807b — Martin Hafskjold Thoresen 5 years ago
Visualize stitching
ec8cf3dd — Martin Hafskjold Thoresen 5 years ago
Implement ray collision checking

It's _very_ slow, but this is probably fixable using some acceleration
structure for the mesh. Do we have time for this?
d1179f67 — Martin Hafskjold Thoresen 5 years ago
Add Update Rest State button
cabf621b — Martin Hafskjold Thoresen 5 years ago
Refactoring

Try to just compute a bunch of stuff for the model when we have deformed
the vertices, such as normals, dot products, and so on. It's still a bit
wonky, since we have to call the `compute_things ` proc after `step_arap`;
maybe we might as well put it inside.

In addition, initialization is a little brittle. It's very possible that
taking explicit arguments instead of using globals help out this.
c28a8667 — Martin Hafskjold Thoresen 5 years ago
Flush out framework for force computation.

Should get something going pretty soon so we can see how it behaves
asap.
f153ab9c — Martin Hafskjold Thoresen 5 years ago
Just move closest along `drag_dir`.

This sort of works, but must be scaled correctly. Also, tried to just
remesh to forget about self intersections, but that didn't work out.
Perhaps there's a tetgen option to fix that.
9e36f620 — Martin Hafskjold Thoresen 5 years ago
Format and comment.

I don't think the way we've attempted here is any good, though I'm sure
there's something wrong with the impl as well, since only 2/3 vertices
is supposed to move.
Next
Do not follow this link