Question about Plugins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about Plugins

Ilkos
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: Also added a class RS_3Dface and changed add3dface function. Now I'm learning plugins. Have a question, can I add a call to the plugin not only the menu but also to make a button, for example, add it to the Cadtoolbarmain? sorry for my english
Reply | Threaded
Open this post in threaded view
|

Re: Question about Plugins

dxli
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
Reply | Threaded
Open this post in threaded view
|

Re: Question about Plugins

Ilkos
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).
Reply | Threaded
Open this post in threaded view
|

Re: Question about Plugins

dxli
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
Reply | Threaded
Open this post in threaded view
|

Re: Question about Plugins

Ilkos
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?
Reply | Threaded
Open this post in threaded view
|

Re: Question about Plugins

dxli
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.

What can you say about my question about the plugin?


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/Question-about-Plugins-tp5708615p5708624.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD-dev, click here.
NAML



--
Dongxu Li, Ph.D.
www.librecad.org
Reply | Threaded
Open this post in threaded view
|

Re: Question about Plugins

Ilkos
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.
Reply | Threaded
Open this post in threaded view
|

Re: Question about Plugins

R. van Twisk
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.
CGAL is very good and a large library, it would be good to use it in LibreCAD.


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/Question-about-Plugins-tp5708615p5708630.html
To start a new topic under LibreCAD-dev, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Question about Plugins

dxli
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