mariuswatz / modelbuildermk2 Goto Github PK
View Code? Open in Web Editor NEWModelbuilderMk2 - computational geometry library for Processing
ModelbuilderMk2 - computational geometry library for Processing
is there a newer version of this for modelbuilderMK2?
Hello,
First off, thank you for creating this library and continuing your work. As a 3D scanner/printer enthusiast this library has been incredibly helpful! But I do have a few questions.
I have been using the older unlekker modelbuilder version, but I would like to update to this version. Before I do that, I would like to be able to look over an Javadoc for the library. I have not been able to successfully find a Javadoc for modelbuilder MK2. Would you be able to point me in the right direction?
Also, does this version supports creating colored UGeo faces?
Best Regards,
Toph
Library doesn't work with Processing 3 due to:
"Applet is gone โ Java's java.awt.Applet is no longer the base class used by PApplet, so any sketches that make use of Applet-specific methods (or assume that a PApplet is a Java AWT Component object) will need to be rewritten."
Hi Marius,
Thank you for sharing this. I look forward to learning more about your class.
Can you provide a little more details on how to properly install this?
I copied the modelbuilderMK2-master folder into Documents\Processing\libraries\ (on Windows7)
then I went to export\modelbuilderMk2\examples\00-intro\UVertexList_01 and tried to run UvertexList_01.pde and I got this error message
"No library found for unlekker.mb2.geo"
"No library found for unlekker.mb2.util"
Running the UGeoGroup_01 (modelbuilderMk2-0156-20140804.zip) results in a divide by zero exception in UGeo.removeDupl(). Perhaps at line 214?
if((cnt++)%modulus==0)
*** Stacktrace
00:00 UMB.setGraphics: PGraphics3D (is3D=true)
00:00 [5 <0.3536,0.3536,-0.5000> <0.3536,-0.3536,-0.5000> <-0.3536,-0.3536,-0.5000> <-0.3536,0.3536,-0.5000> <0.3536,0.3536,-0.5000>]
00:00 [5 <0.3536,0.3536,0.5000> <0.3536,-0.3536,0.5000> <-0.3536,-0.3536,0.5000> <-0.3536,0.3536,0.5000> <0.3536,0.3536,0.5000>]
java.lang.RuntimeException: java.lang.ArithmeticException: / by zero
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
at javax.media.opengl.Threading.invoke(Threading.java:191)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)
at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)
at processing.core.PApplet.run(PApplet.java:2256)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ArithmeticException: / by zero
at unlekker.mb2.geo.UGeo.removeDupl(Unknown Source)
at unlekker.mb2.geo.UGeo.quadstrip(Unknown Source)
at unlekker.mb2.geo.UGeo.quadstrip(Unknown Source)
at unlekker.mb2.geo.UGeoGenerator.meshPlane(Unknown Source)
at UGeoGroup_01.build(UGeoGroup_01.java:102)
at UGeoGroup_01.setup(UGeoGroup_01.java:58)
at processing.core.PApplet.handleDraw(PApplet.java:2361)
at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1289)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1119)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:994)
at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1300)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.