Comments (7)
https://mgarland.org/files/papers/quadric2.pdf
the first paper is rarely the best one. yes, any weighting affects the optimal point.
from geometry3sharp.
I read article you sent.
OK, I found "it is useful to weight quadrics by the area of the contributing triangle". It seems to work, but maybe we need to consider this weights in some other places when reducing? Because now I got different results on one mesh with different scales (when reduce to triangles count).
For example, look at the ear
and it's a bit strange, because areas of triangles should rise proportionally.
The results will be identical if I delete multiplying on "w" in Add method
from geometry3sharp.
because it is based on sequential edge collapses, the final result can be wildly different if even one edge is collapsed in a different order. The code is in floating point, so individual quadrics that evaluate to nearly identical error can easily switch order if you change the vertices even a tiny bit (eg by scaling). This is particularly an issue in planar regions, and also on near-regular meshes where all the initial one-rings are nearly identical.
Also, the OptimalPoint() function has a hardcoded epsilon to avoid singular matrices, in such cases basic midpoint interpolation is used. This actually happens quite often. As you scale down the shape, it will happen more often, and each time it does, it will have a downstream effect on the output mesh.
It's possible that SVD could be used to deal with these singular matrices and make the results more consistent. It is probably infrequent enough that it wouldn't be a huge computational cost.
If you want to minimize floating point effects, you probably should also scale to/from a unit box before running the algorithm. This actually does make a difference, as floats/doubles are 'denser' closer to 0.
from geometry3sharp.
Okay, thanks a lot!
By the way, is there any built-in way to minimize vertex numbers (I mean indices) after mesh reducing for more effective storing in memory?
from geometry3sharp.
the terminology for this in the library is 'compacting'. There are several DMesh3 copy-constructors that take a 'bCompact' flag that will produce a compacted copy. In addition there is DMesh3.CompactInPlace(), this will make the indices dense (ie no gaps) but doesn't free up all the extra memory.
from geometry3sharp.
Is there any source code for C#?
from geometry3sharp.
Leaving a comment so I can find this later.
from geometry3sharp.
Related Issues (20)
- Convert mesh regions to 2d, alter in 2d, push back into 3d mesh
- Is this project dead? HOT 1
- Get brick materials right
- Fix hover info on bricks
- Rewrite right pointer (PLEASE!) HOT 1
- Mesh expansion and comparison
- Refactor cursor3d
- Refactor HandR and HandL to use input action class
- Write playmode tests for right pointer flow
- Rider clean project to adjust line length
- Break up LDrawConfig into different classes
- Refactor BrickMaterialsLoader (PLEASE!!!)
- Example of mesh volume calculation HOT 3
- 这个可以做曲面拟合吗?
- Can this be used for surface fitting?
- Narrow band SDF generation from meshes is adding a shell to objects HOT 1
- Minkowski sum 3D
- Get closest vertex on mesh surface HOT 2
- Boolean operations on polygons and polyhedra?
- Quadratic Bezier Curves HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geometry3sharp.