A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
DWG. … Points optimization. [Connecting many Splines]
Posted: 03 August 2016 08:21 AM   [ Ignore ]  
Total Posts:  7
Joined  2012-01-05

DWG. Bad Points optimization.

I’m used to import dwg files. When I do connect+delete with lines, the overlapping points doesn’t connect correctly (I would like to know if there is a similar tool as Optimize for this issue) and I have to do it manually, what is a heavy job in some cases when I try to connect curves.

Thanks in advanced!

Profile
 
 
Posted: 03 August 2016 02:10 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi emivalc,

Edit: solution is described in post #6 and #7! /edit

Would you mind to share a little example?

(A while ago I asked a plug in developer about this, but so far I haven’t heard from him. I have to follow up today on it, obviously ;o)

Have you tried to select these areas and then use the optimized tool, with adjusted tolerance values?

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 03 August 2016 05:09 PM   [ Ignore ]   [ # 2 ]  
Total Posts:  7
Joined  2012-01-05

Thanks for the fast answer Dr. Sassi,

I share this easy example. In this case you can see a null with the original files. At the right side, there is a null with the same lines connected+deleted and also optimized (I’ve increased the tolerance value but the result was the same). As you can see the lines are not connected.

There is another issue importing CAD, at least if you are working in milimiters scale. When you import the file the null where are the CAD lines, named as objects.dwg, is in 0.1 factor in XYZ. This matters when you put the lines into an Extrude object because you have to multiply the extrussion factor by 10.

I’ve been working with both issues for several years and I’m used to them and I have my own workflow. But could be nice to find another solution.

Regards.

File Attachments
Example CAD.zip  (File Size: 124KB - Downloads: 86)
Profile
 
 
Posted: 03 August 2016 05:54 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Thanks for the file, emivalc.

Always a good base to start from. I assumed polygons, but yes Spline are possible.

The problem here is certainly not in the point position, as they are precise. I see the problem in the Segments and that requires here the Mesh> Spline> Joint Segment.

I have a created a short little clip for you (one minute and you can download it):

https://www.amazon.com/clouddrive/share/yKKeSuqeo4o6UIyJ55MH3sTB0yfeQPUVtxe6G541SaC?ref_=cd_ph_share_link_copy

You are certainly familiar with the gradient along the spline, it indicates the point number direction, and perhaps needs in some cases to be reversed.

Please let me know if there is anything else.

My best wishes for your project.

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 04 August 2016 03:44 AM   [ Ignore ]   [ # 4 ]  
Total Posts:  7
Joined  2012-01-05

Thanks a lot for the clip, it is very well explained how to proceed. It is the same way I’ve been doing this years, using Joint Segment, it is fast when you have simple CAD plots, but when they are more complex it starts to be tedious. I thought that could be another way to do it.

Thanks anyway for your time and the very well explained clip.

Regards!

Profile
 
 
Posted: 04 August 2016 04:49 AM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi emivalc,

I haven’t tested any:
http://www.welter-4d.de/fplugs/freeplugins_en.html#splinenoisedeformer
Another source, but not free, so please check first if that works, is here:
http://add-the-sea.de/eng/index.php?option=com_content&task=section&id=12&Itemid=56
Scroll down, perhaps it works. Since the last update was R16, I’ m not certain how long it might work.

On the other hand, since you would expect a good precision from a CAD modeler, there should be a simple way to read out Splines points, as long they might be in the right sequence in the Object Manager, to write a new single one via Phython. Perhaps something to suggest for the Cineversity Toolbox? ;o)

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 04 August 2016 05:09 AM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S: (I just read today a scientific paper about “let go” to increase the ability for creative solutions. Well… 1:09am here, and it seems to work.)

Try this, place all Splines for one object into a MoGraph Tracer. Set the Tracing Mode to “Connect All Objects”.

Eventually the sequence of the splines in the list, and/or the direction of some spline has to be adjusted.

Close the Spline (in the Tracer, and perhaps check other settings if needed.)
You example worked just fine with this technique. See file “…_01”

There will be double points in this, you can heal this by selecting the working Tracer and pressing the C key. Then use the Optimize Function to eliminate those. If you ahve a lot of Splines that need to be connected, that seems a way to go. Let me know if I miss something. See file “…_02”

My best wishes


File _02
https://www.amazon.com/clouddrive/share/JQ40E8CODJQOnyb8RjpYEQ7AFDMGNVcxsS9gveoyZV8?ref_=cd_ph_share_link_copy

File Attachments
CV2_r17_drs_16_MGmo_01.c4d.zip  (File Size: 40KB - Downloads: 90)
 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 04 August 2016 03:46 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

The following explains how lots of Splines can be connected with this procedural. The file is in the post above. I made a little one minute clip about:

https://www.amazon.com/clouddrive/share/13TLywcSH4Ml0cETcLRC1Q5ZzkQQMy1uyOiKLlpGURG?ref_=cd_ph_share_link_copy

Please note this works with all interpolations, except Bezier, those needs conversion before. If there is a problem, please ask. But the DWG file seems to import “linear” here.

ENJOY

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 08 August 2016 05:52 AM   [ Ignore ]   [ # 8 ]  
Total Posts:  7
Joined  2012-01-05

Amazing solution!!

Thanks a lot!! I could never imagine tu use Tracer in this way. In fact it is the fastest solution. Impresive!

I will have a look to the plugins you mentioned previously, but I think will be enough with Tracer grin

Bravo!

Profile
 
 
Posted: 08 August 2016 03:05 PM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Thank you very much for your nice feedback, emivalc! :o)
Without your question, I wouldn’t have looked into it :o) So, thank to you as well.

If that works, yes, the one plug-in seems to be end of life and the other one, even worth it with so much functionality, a little bit pricy, if one needs only one function.

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile