Looking for a clever way to connect disjointed sketch lines
 1-20  21-33

Next
 From:  pior (PIOR_O)
10957.1 
Hello Michael, all,

Outside of mechanical CAD drawing and modeling, I am also using MOI as an organic sketching and lineart tool. This is of course outside of the intended scope of the software, but the raw power that MOI gives actually makes it very suitable for such use - It is way faster and way more responsive than Inkscape or Affinity Designer for instance.

With that said, I'd like to find a workaround for the following. Because of the nature of sketching, one always ends up with near (but not quite) overlapping lines and/or disjointed strokes. The fix consists of displaying the control points, deleting the undesired ones, and snapping points to close the gaps. And then, at the curve level, joining the two curves. Like so :

https://www.youtube.com/watch?v=ldag2Tba6Qo

Is there a way to accelerate the process ? Ideally, a good order of operations would consist of selecting all the desired points and then performing an "all in one" action, scaling all these points down to their barycenter and getting the two source curves connected. And also ideally, this would work on either polylines or smooth interpolated curves.

Of course I am also open to any other suggestions related to lineart cleanup, as perhaps some existing features or custom scripts could be of some help. It also goes without saying that I am also interested in ways to avoid such disjointed curves in the first place - perhaps the sketch tool can be made to automatically connect lines existing curves to newly drawn ones ?

Thanks !
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10957.2 In reply to 10957.1 
Out of your specific problem of points why don't use the Draw Curve/ Free Form / Sketch tool directly ?

Moi was created at the start for be used with a "Pen Graphic"! ;)

So you will have your curves drawn manually on your model with an artistic touch! ;)

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  pior (PIOR_O)
10957.3 
FP : while I appreciate the input, please read the actual paragraph/description in my post ... I am well aware of how to sketch lines using the sketch tool, since that's *precisely* how such hand-drawn lineart is done in MOI. The topic being brought up here is how to connect two lines after the fact by merging points, or perhaps, getting a second line to connect to an existing one.

EDITED: 20 Jan 2023 by PIOR_O

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10957.4 
A new curve composed of a sort of middle points x,y,z between 2 other points selected from 2 original curves...
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10957.5 In reply to 10957.1 
“””””” perhaps the sketch tool can be made to automatically connect lines existing curves to newly drawn ones ?”””””

Yes! The sketch tool makes such beautiful curves but connecting abilities are manual.

If it could be made to have an “endpoint snap” toggle that would keep tangency to curves endpoint snapped onto then continue with its normal behavior, it would be a MONSTER tool!!!

The auto blending/connecting command doesn't exist. One was created that connects “points” within given tolerances. Maybe someone can look at that to see if it can be made to do “endpoints” instead, then do a polylime connection, or a blend….
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10957.6 In reply to 10957.5 
“Polylime” is a drink sold on the beach in the Caribbean!

Be responsible!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  pior (PIOR_O)
10957.7 In reply to 10957.6 
Well, now I am curiuous - of both the UX you are describing, and the Caribbean drink :D

In the meantime I'll keep digging for older threads about line cleanup.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10957.8 In reply to 10957.1 
Hi pior, one possibility for a more "construction" oriented way than point manipulation is to use Edit > Trim to open up a gap between piece and then Construct > Blend to put in a smooth blend curve to connect between the pieces.

- Michael

EDITED: 20 Jan 2023 by MICHAEL GIBSON

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10957.9 In reply to 10957.5 
Hi Burr,

re:
> If it could be made to have an “endpoint snap” toggle <....>

I've tried that before long ago but it doesn't work very well to have one point suddenly shift from the rest, it makes for a noticeable shaping change in the sketch curve right at that spot.

One kind of vague idea that I haven't been able to explore so far is something like a curve airbrush sketcher where you could lay down multiple strokes and also erase areas and make a smooth curve fit through the densest zone.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10957.10 In reply to 10957.9 
“”””” lay down multiple strokes and also erase areas and make a smooth curve fit through the densest zone.””””

That would be an incredible addition! And the pen tablet artist will be dancing in the streets and drinking Polylime!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10957.11 In reply to 10957.8 
“””””” > Trim to open up a gap between piece and then Construct > Blend to put in a smooth blend curve to connect between the pieces.”””””

Since the point picker has a radius, can it be scripted or commanded to do a “gap” in a single click?

So like on curves, if you placed a circle of a particular radius and boolean diffed it away from the curve. (The trim and delete part)

The UI could just be a radius/diameter value. It doesn't even need to be joined curves or connected segments. Just delete everything in the radius. (And of course limit the target if something is “selected”….

Brainstorming….. its a dark, grey storm….
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10957.12 In reply to 10957.11 
Hi Burr,

re:
> Since the point picker has a radius, can it be scripted or commanded to do a “gap” in a single click?

Maybe like this attached script?

- Michael
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10957.13 In reply to 10957.12 
BAMMM!!! POW!!! ZAP!!!!

Holy Smokes Batman. Exactly like that!!!

You have made my month. Again!
Thanks.....
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10957.14 In reply to 10957.13 
I'm glad you like it Burr! :)

I need to make a couple of new options on the pointpicker to enable erasing by holding down the mouse button and dragging instead of only with individual clicks.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10957.15 In reply to 10957.14 
That will be pretty radical too.

The "single click" mode is still very good for Precision work, so keeping that separate is good. Like "Shakey hands" or moving "Too quickly" may erase more that "1 inch radius"?

as long as single click can differentiate from "Moved a little"....
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10957.16 
I had some fun using the "eraser" script.
It seems to work in 3 different irregular ways.

It makes round holes in surfaces, or solids, in one view.

Sometimes the curve needs to be closed and selected, but sometimes it works on an open curve, selected or not selected, or else "calculation fails".

For some curves it leaves behind a partial circular arc, sometimes a gap.

The descriptions swiss cheese and nibbler come to mind...

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10957.17 In reply to 10957.16 
“””””” Sometimes the curve needs to be closed and selected, but sometimes it works on an open curve, selected or not selected, or else "calculation fails".

For some curves it leaves behind a partial circular arc, sometimes a gap.”””””

Sounds like projection errors with the setup of the curves….

3d curves? Normal trims and booleans can do that when z values (or depth values) are introduced to the projection.

Can you make a file that does this?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10957.18 In reply to 10957.16 
Hi Brian, yes it's mostly meant to be used on open curves. With closed curves or solids it is more of a swiss cheese effect.

There really isn't a whole lot to it, it's just doing boolean difference with a circle as the cutting object. On an open curve just pieces of the curve are removed while on a closed curve or solid pieces of the cutting object are part of the result.

> but sometimes it works on an open curve, selected or not selected, or else "calculation fails"

The "Calculation failed" will happen if any of the candidate target curves are not on the same plane as the circle. if you run into this then select some curves that will be on the same plane as the circle so it only tries to target those.

Maybe it would be better if it automatically skipped over curves that are not on the same plane as the circle.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  pior (PIOR_O)
10957.19 In reply to 10957.18 
Oh wow indeed ! This is so simple yet so useful. Thank you to all 3 for the suggestions, and of course for the Eraser script ! And I dont think I ever used the Blend command before, so thank you for bringing it up too.

All this may seem a bit tedious on the footage below but this is really useful. In my case it doesn't even need to be applied to the whole drawing, as only the most shaky and disconnected curves need correction (since the image is then rendered as raster pixels for coloring, and the rastering blends the lines that are already near tangent)

https://youtu.be/TsXEjCcV8iI

There is some slowdown when invoking it without making a selection beforehand, but that's to be expected.
I can't wait to try it while drawing, as opposed to doing it after the fact.

Perhaps ultimately the two operations (eraser then blend) could be rolled into one ?
I also wish Blend had the option to automatically merge the resulting 3 curves.

EDITED: 20 Jan 2023 by PIOR_O

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10957.20 
Enlightening video i was perplex of what Eraser supposed to do!
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-33