Click here to Skip to main content
15,905,323 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 5:07
mvahoney the codewitch5-May-19 5:07 
GeneralRe: I need to exorcise my computer from voodoo Pin
User 110609795-May-19 5:13
User 110609795-May-19 5:13 
GeneralRe: I need to exorcise my computer from voodoo Pin
GuyThiebaut5-May-19 5:01
professionalGuyThiebaut5-May-19 5:01 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 5:06
mvahoney the codewitch5-May-19 5:06 
GeneralRe: I need to exorcise my computer from voodoo Pin
User 110609795-May-19 5:20
User 110609795-May-19 5:20 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 6:05
mvahoney the codewitch5-May-19 6:05 
GeneralRe: I need to exorcise my computer from voodoo Pin
User 110609795-May-19 6:46
User 110609795-May-19 6:46 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 0:54
migelle6-May-19 0:54 
Seems to me you have an ID problem here. I will try to explain. When your eraser tool, which is nothing but a circle object intersects with the existing object it creates new vertices. Those new vertices need to be connected to existing ones. During this process an AREA needs to be defined within the connections will happen. Since you have no area defined, newly formed vertices connect to the existing ones. Since no more than 2 vertices can be connected on a 2 dimensional object, an existing connection is broken splitting the object in 2. Here's how this happens: there's a vertex at the top left of your image where the breaking happens, and let's label it V1, and it's connected to a vertex below it, so let's label that one V2, and there's a Bezier curve that connects them. When you introduce the eraser tool (which is a new circle object that also consists of vertices) and intersect it with the object, you are creating new vertices, so for easier understanding let's say 2 new ones, V3 and V4. As a result, instead of new vertices V3 and V4 being connected and creating a Bezier curve between them, connection at V1 breaks, a new connection is created between V1 and V4, also between V2 and V3 thus splitting the object in two, and also creating a Bezier curve as it was their last state.
The best way to approach this problem is to create 2 new states for each vertex:
- is a vertex being deleted cause intersection happens where the vertex is, and 2 new vertices are created and connected thus eliminating the first one,
- if the intersection doesn't happen where the new vertex is, newly created vertices should be connected to the nearest left, between themselves, and nearest right, following the edge of the object.
Proposed solution
This is just a rough idea on what's going on and what the solution may be. I hope I helped.

modified 6-May-19 7:13am.

GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 1:35
Super Lloyd6-May-19 1:35 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 1:49
migelle6-May-19 1:49 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 3:48
Super Lloyd6-May-19 3:48 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 4:20
migelle6-May-19 4:20 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 15:07
Super Lloyd6-May-19 15:07 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle7-May-19 1:34
migelle7-May-19 1:34 
GeneralRe: I need to exorcise my computer from voodoo Pin
Reader Man San6-May-19 2:55
professionalReader Man San6-May-19 2:55 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 3:45
Super Lloyd6-May-19 3:45 
GeneralRe: I need to exorcise my computer from voodoo Pin
jeb12176-May-19 7:51
professionaljeb12176-May-19 7:51 
GeneralNot worth it ! Pin
RickZeeland4-May-19 23:57
mveRickZeeland4-May-19 23:57 
GeneralRe: Not worth it ! Pin
Maximilien5-May-19 1:52
Maximilien5-May-19 1:52 
GeneralRe: Not worth it ! Pin
Super Lloyd5-May-19 12:52
Super Lloyd5-May-19 12:52 
GeneralMessage Closed Pin
4-May-19 23:25
Member 143557914-May-19 23:25 
GeneralRe: 一家人几月几日 Pin
Christian Graus4-May-19 23:52
protectorChristian Graus4-May-19 23:52 
GeneralWorth it! Pin
Kornfeld Eliyahu Peter4-May-19 20:21
professionalKornfeld Eliyahu Peter4-May-19 20:21 
GeneralRe: Worth it! Pin
RickZeeland4-May-19 23:39
mveRickZeeland4-May-19 23:39 
QuestionRe: Worth it! Pin
lopatir5-May-19 3:35
lopatir5-May-19 3:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.