LibreCAD / LibreCAD_3

LibreCAD 3 is a next generation 2D CAD application written to be modular, with a core independent from GUI toolkits. Scripting is possible with Lua.
http://librecad.org
Other
310 stars 103 forks source link

Edit Nodes #255

Open flywire opened 4 years ago

flywire commented 4 years ago

Edit (add, delete, move) nodes would be useful.

rupakbajgain commented 4 years ago

Do you mean points?

flywire commented 4 years ago

Yes

rupakbajgain commented 4 years ago

Ok, i will try that.

flywire commented 4 years ago

Please confirm #312 functionality.

The intent of this issue is say you have a square:

rupakbajgain commented 4 years ago

Please confirm #312 functionality.

The intent of this issue is say you have a square:

* Deleting the node at the top right corner of the square would leave the remaining nodes to form a triangle.

* Selecting the top line and dragging a new node into it would make it five-sided, like a house with a roof. Moving to the left or right of the line would allow more points to be added.

Sorry i thought of another thing, may be this can be done in polyline only. I will think about it and try it when i find a way,

flywire commented 4 years ago

If a square, triangle and circle are polylines then yes. Maybe a point and a line are polylines with zero and one segments respectively?

rupakbajgain commented 4 years ago

Please confirm #312 functionality.

The intent of this issue is say you have a square:

* Deleting the node at the top right corner of the square would leave the remaining nodes to form a triangle.

* Selecting the top line and dragging a new node into it would make it five-sided, like a house with a roof. Moving to the left or right of the line would allow more points to be added.

@flywire i am thinking of doing this my using dragpoints which are already there, how to diffrentiate between the dragging and (adding or removing node) maybe mouse button or keyboard shortcut, like del key press removes last clicked node, enter creates new node there, or diffrentiate left and right mouse click actions.

-> Or maybe it should be done as seperate operation. click add node and click polygon....

rupakbajgain commented 4 years ago

If a square, triangle and circle are polylines then yes. Maybe a point and a line are polylines with zero and one segments respectively?

Line, Square, and Triangle (arc maybe)can be represented by polyline, but not point and circle. @feragon how should we do it.

flywire commented 4 years ago

Dragpoints is interesting. Del deletes node, ins inserts node on line at the cursor location and the user can drag it as required. Maybe right mouse click brings up a context-sensitive menu.

To be clear, if using dragpoint:

What is issue with point as zero segment polyline? It would be the same as points in the first paragraph above.

Circle - new node would make icecream cone shaped then the user could shape straight line(s) as required. Probably not, it would just change circle radius, circle would probably need to be split into [two?] arcs first.

rupakbajgain commented 4 years ago

@flywire ,i think insert can be done as i have in video in zulip chat,