Comments (3)
Hi Toni,
First of all, I've never compiled or run this in Visual Studio, I developed it in Linux, using gcc, so you might stumble on some compatibility issues. I can't say there are any because I don't know, but just a little disclaimer.
Regarding your error, usually that happens when an iterator points to nothing or something has corrupted the memory. In this case I think the problem might be because I'm erasing the element from the container (line 83) and then checking if I can remove any vertex from the front (line 84), so you could try to swap those lines and see what happens. You should also do the same fix on lines 128 and 129, where the same operation is done.
I find this interesting because while I was implementing the Front class I thought that might happen and tried it both ways (erase from container and then remove the points and viceversa), but none of them failed.
Please let me know if that works for you.
Best.
Rodrigo.
from bpa.
EDIT 2: I'm an idiot sorry. Didn't saw the mask you are using above. Thanks for your great help! And keep up the good work!
EDIT:
I have found the problem. As you said, it might be a problem of vc12. I swapped Line 83-84 and 128-129 and changed Line 84 and 129 as follows:
From front.erase(pos);
to pos = front.erase(pos);
The code is running fine now and i got an .off file after 1 - 2 seconds as result. Sadly, MeshLab can't open it. Do you have any idea whats the problem with it? I also tried RoffViewGL, no luck. Here is my output: https://paste.ee/p/ujUcU
br,
Toni
Hi Rodrigo,
thanks for your fast answer! I had already tried that, it results in the same error, but now at _pivoter.setUsed(_data.first);
(Line 90). _data.first
is not empty, what confuses me most. In Line 87 the list::iterator pos;
looks like this:
so it's pointing into the deep blue. I hope this is no compatibility issues with the vc12 compiler. What version of gcc are you using?
br,
Toni
from bpa.
Hi Toni,
It's great to hear it finally worked for you. The OFF files can be opened using Geomview (http://www.geomview.org/download/), sadly there's no binaries available for Windows, but can be compiled from source. Anyway, the OFF format it's pretty well known, so I believe there must exist some other app available for Windows.
Best.
Rodrigo.
from bpa.
Related Issues (7)
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 bpa.