Click here to Skip to main content
14,457,796 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 6:07
mvahoney the codewitch5-May-19 6:07 
GeneralRe: I need to exorcise my computer from voodoo Pin
0x01AA5-May-19 6:13
professional0x01AA5-May-19 6:13 
GeneralRe: I need to exorcise my computer from voodoo Pin
GuyThiebaut5-May-19 6:01
professionalGuyThiebaut5-May-19 6:01 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 6:06
mvahoney the codewitch5-May-19 6:06 
GeneralRe: I need to exorcise my computer from voodoo Pin
0x01AA5-May-19 6:20
professional0x01AA5-May-19 6:20 
GeneralRe: I need to exorcise my computer from voodoo Pin
honey the codewitch5-May-19 7:05
mvahoney the codewitch5-May-19 7:05 
GeneralRe: I need to exorcise my computer from voodoo Pin
0x01AA5-May-19 7:46
professional0x01AA5-May-19 7:46 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 1:54
Membermigelle6-May-19 1: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 2:35
MemberSuper Lloyd6-May-19 2:35 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 2:49
Membermigelle6-May-19 2:49 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 4:48
MemberSuper Lloyd6-May-19 4:48 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle6-May-19 5:20
Membermigelle6-May-19 5:20 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 16:07
MemberSuper Lloyd6-May-19 16:07 
GeneralRe: I need to exorcise my computer from voodoo Pin
migelle7-May-19 2:34
Membermigelle7-May-19 2:34 
GeneralRe: I need to exorcise my computer from voodoo Pin
Reader Man San6-May-19 3:55
professionalReader Man San6-May-19 3:55 
GeneralRe: I need to exorcise my computer from voodoo Pin
Super Lloyd6-May-19 4:45
MemberSuper Lloyd6-May-19 4:45 
GeneralRe: I need to exorcise my computer from voodoo Pin
jeb12176-May-19 8:51
professionaljeb12176-May-19 8:51 
GeneralNot worth it ! Pin
RickZeeland5-May-19 0:57
communityengineerRickZeeland5-May-19 0:57 
GeneralRe: Not worth it ! Pin
Maximilien5-May-19 2:52
MemberMaximilien5-May-19 2:52 
GeneralRe: Not worth it ! Pin
Super Lloyd5-May-19 13:52
MemberSuper Lloyd5-May-19 13:52 
GeneralRe: 一家人几月几日 Pin
Christian Graus5-May-19 0:52
mveChristian Graus5-May-19 0:52 
GeneralWorth it! Pin
Kornfeld Eliyahu Peter4-May-19 21:21
mveKornfeld Eliyahu Peter4-May-19 21:21 
GeneralRe: Worth it! Pin
RickZeeland5-May-19 0:39
communityengineerRickZeeland5-May-19 0:39 
QuestionRe: Worth it! Pin
lopatir5-May-19 4:35
Memberlopatir5-May-19 4:35 
AnswerRe: Worth it! Pin
RickZeeland5-May-19 4:39
communityengineerRickZeeland5-May-19 4:39 

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.