Comments (3)
This solves the issue, many thanks! Perhaps the .clean() call should be default for polydata load's as it is quite unexpected and not sure why more point are generated.
from vedo.
Hi!
thanks a lot for your interest.
Indeed when the vtkPolyDataReader
object loads the mesh it duplicates vertices for some reason that is not very clear to me..
If you load the mesh with:
shu = vp.load('data/shuttle.obj').clean()
print(shu.N()) # 310 points
instead of vp.load('data/shuttle.obj')
, then coincident points are merged..
clean()
just wraps https://vtk.org/doc/nightly/html/classvtkCleanPolyData.html
from vedo.
It was actually the default in previous versions, but for large meshes loading was slower and I had a couple of other issues so I removed it..
from vedo.
Related Issues (20)
- volume operation crashes HOT 2
- quadric decimation gone? HOT 1
- how to speed up cut_with_mesh? HOT 8
- example slab_vol.py crashes on AttributeError: 'Volume' object has no attribute 'slab' HOT 2
- collapse_edges() not preserving celldata HOT 2
- mesh colors not showing HOT 3
- distance_to produces error if the point cloud does not contain faces HOT 4
- Feature Request: mesh.show() to not permanently stay in plot HOT 2
- how to adjust the font in legend? HOT 1
- Cut a circle hole interactively HOT 1
- [BUG] Screenshot function and camera argument not working anymore HOT 3
- makeVideo.py not working... HOT 1
- Can't set up the camera to render Mesh HOT 2
- vtkOBJReader - unexpected data at end of line in OBJ file HOT 3
- Pointdata and celldata lost when decimating mesh HOT 5
- Regression: Plots not working in jupyter environment HOT 2
- button clicks are triggered twice HOT 2
- mesh modify doesnt change mesh pos() also GetPosition() not working HOT 7
- Feature requirement: Mesh decimation based on cell/point field HOT 1
- Decimating a mesh with islands results in missing cells
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 vedo.