Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi, I'm new to Librecad. I study LibreCAD about 6 months. I added a triangulation of areas, the calculation of the characteristics (area, moments of inertia, principal axes) example rendering:
![]() |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Looks great!
I would want these features in LibreCAD directly, instead of staying as plugins. About triangulation, how do you do that? can we extend this to: 1, arc/circle border; 2, ellipse border; 3, voronoi triangulation; 4, better integrated with current hatching method, and improve the hatching method. dxli |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hello, dxli!
I used a ready-made library for triangulation in my project (calculation of the moment of inertia of the torsion and shear stress using the finite element method). This library is written by Jonathan Richard Shewchuk (http://www.cs.berkeley.edu/ ~ jrs /) and is called the "Triangle". LibreCAD I used to create the beam section and visualization of the "Triangle". "Triangle" can do voronoi triangulation.
Arcs and circles are divided into several segments (lines) in my project, I used 72 lines to one circle. Ellipses I did not realize (I do not need).
![]() ![]() |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
hi,
I am thinking about a general way to do this: pack some points into an enclosed area (by regular grid points, or by some simulated best packing, etc.) do voronoi of these points; trim the borders going out of border of the area. connect nearest neighours find a way to handle border points I would like to see Voronoi in LibreCAD anyway. dxli |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
It is a good idea. For the Voronoi diagram, you can use algorithms from the boost. Doc.
What can you say about my question about the plugin? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
It's great to rely on boost which is already in LibreCAD deps. I was thinking about to pull in CGAL.
Can you help the development process? I am thinking about releasing 2.0.0 soon and fork a 2.1 branch.
On Fri, Jul 26, 2013 at 9:40 AM, Ilkos [via LibreCAD] <[hidden email]> wrote: It is a good idea. For the Voronoi diagram, you can use algorithms from the boost. Doc. -- Dongxu Li, Ph.D. www.librecad.org |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I'm not a professional programmer. And new to the QT.
CGAL is very good and a large library, it would be good to use it in LibreCAD. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
When I looked last year at CGAL it wasn't suitable for our purpose because
it was missing quite a bit of functionality needed for typical CAD applications. I can't remember what they where though but I think it had something to do with intersection points of various entities that where not available in CGAL.
On Jul 28, 2013, at 8:37 AM, Ilkos [via LibreCAD] <[hidden email]> wrote: I'm not a professional programmer. And new to the QT. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I suppose we should implement these features into LibreCAD directly, so we will add GUI(button/menu, etc.) support accordingly. I can help on the GUI part.
To Ries: CGAL can do intersections, up to quadratic, i.e., line-line, line-circle, circle-circle, line-ellipse, but no ellipse-circle. http://www.cgal.org/Manual/latest/doc_html/cgal_manual/QP_solver/Chapter_main.html#Section_10.4 |
Free forum by Nabble | Edit this page |