CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 23, 2019, 10:13:25 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Profile Combine plugin  (Read 1874 times)
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 168


View Profile
« on: August 15, 2018, 04:43:16 am »

This is a new plugin that is intended create a new Surface object from two Surface objects by applying a mathematical operator on them (+, -, x, /) in the Z-Axis direction.  An STL file is also created and saved for the combined surface.

Comments and suggestions welcome.

Geoff

I am attaching a new version (1.0.2, vers 1.0.1 did not fix the problem), to fix a problem with the Delaunay triangulation when one surface is completely flat.

* ProfileCombine-V1.0.0.zip (716.42 KB - downloaded 88 times.)
* Profile Combine Example.pdf (1110.39 KB - downloaded 106 times.)
* ProfileCombine-V1.0.2.zip (181.12 KB - downloaded 48 times.)
« Last Edit: December 21, 2018, 00:42:34 am by GeoffreyGRoy » Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #1 on: December 17, 2018, 02:52:36 am »

Hello Geoff

I'm playing (and translating) with the plugin, but I think that I don't understand all  Embarrassed

I'm trying to add/substract a shape (surface 6) that look like a bowl from a flat ellipse (surface 2) ; the goal is to obtain a "print" of the bowl in the ellipse. The resulting objet must only keep the ellipse contour and remove the extra material of the bowl.

But no luck I can't understand how to do ; and I get an error message if one of the "include all" is unchecked.

I attach the file and screen shot

++
David




* Sans titre-2.png (22.57 KB, 904x389 - viewed 104 times.)
* Sans titre.cb (268.31 KB - downloaded 46 times.)

* Sans titre-1.png (248.05 KB, 1280x901 - viewed 98 times.)
Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #2 on: December 17, 2018, 03:02:29 am »

Ah ah ! ... It works if the ellipse is not totally flat.

++
David


* Sans titre-3.png (65.26 KB, 1074x565 - viewed 106 times.)
Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #3 on: December 17, 2018, 03:21:35 am »

The results with a 3D cube (closed, done with the extrude solid CB tools) and a bowl done with Eddy's Revolved extrude plugin.

Works, but only the top of the cube remain in the resulting objects ; but maybe it's a normal thing ? ... I assume that this plugin is not exactly the same that a Boolean operation like on 3Dsmax ?

nice job  Grin

It's difficult for me to imagine what can be done with the * and / operations  Grin  do you have any examples ?

++
David


* Sans titre-4.png (246.04 KB, 1280x927 - viewed 109 times.)
« Last Edit: December 17, 2018, 03:28:41 am by dh42 » Logged
Dragonfly
CNC Jedi
*****
Offline Offline

Posts: 2154



View Profile
« Reply #4 on: December 17, 2018, 08:18:13 am »

First time I see this plugin but I feel I may be needing it soon Smiley
Logged
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 168


View Profile
« Reply #5 on: December 18, 2018, 04:03:22 am »

Dear David

The error reported comes from the Delaunay Triangulation.  It seems that if you have an absolutely flat surface then the algorithm fails. Providing the surface has a (very small) Z-difference then it seem to be OK. I will see if I can fix this. Also, it will not triangulate vertical surfaces - hence the missing sides on the cube.  This is a restriction on the algorithm.  It is not intended to be an any way similar to a Boolean operation.

I am attaching an example using the mult(X) operation.  I am not sure it is particularly useful, but one never knows.  In essence one surface it set up to represent the multiplier with a range 0 to some (smallish) value.  Large values are likely to cause chaos.  The attached image shows the multiplier defined as a pyramid shape with a range 0 to 10.

Geoff


* MultTest.jpg (41.11 KB, 865x485 - viewed 116 times.)
Logged
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 168


View Profile
« Reply #6 on: December 18, 2018, 04:44:35 am »

I have posted a new version that should fix the flat surface problem.

Geoff

* ProfileCombine-V1.0.1.zip (181.01 KB - downloaded 48 times.)
Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #7 on: December 18, 2018, 22:30:39 pm »

Hello

I redo a test with a flat surface and V 1.01 and ... same result ...  Huh (same with - and +)

If I slightly rotate the oval around Y axis (0.1°) that works ...

test file attached, and picture to see settings.

++
David


* Sans titre-1.png (247.82 KB, 1024x844 - viewed 102 times.)
* Sans titre.cb (494.9 KB - downloaded 44 times.)
Logged
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 168


View Profile
« Reply #8 on: December 19, 2018, 07:07:51 am »

Dear David

I have tried out the CB model (Sans titre.cb) that you attached, but I cannot reproduce the problem.  I have used the same settings that you had but it seems to work for me, see attachment.  Had you already rotated the oval?  If so, could you please post the original file for me to test.

thanks

Geoff


* Sans titreTest.jpg (91.35 KB, 873x708 - viewed 89 times.)
« Last Edit: December 19, 2018, 07:10:43 am by GeoffreyGRoy » Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 4007



View Profile
« Reply #9 on: December 19, 2018, 08:48:11 am »

Geoff,

The file David attached has one surface already rotated.
I've redrawn the surfaces and these ones never had any rotation applied, you can see it failed.

* Sans titre-2.cb (1161.14 KB - downloaded 39 times.)

* error.jpg (141.67 KB, 914x713 - viewed 93 times.)
Logged

Made in England
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #10 on: December 19, 2018, 16:35:26 pm »

Hello

Quote
Had you already rotated the oval?  If so, could you please post the original file for me to test.

Oops ! ... yes I attached the wrong file ; the oval is already rotated 0.1° on Y axis.

Eddy's file is the right file to test (I get the error with his file)

tested on CB V1.0 (Is it compatible with 0.98 ?)

++
David
« Last Edit: December 19, 2018, 16:38:42 pm by dh42 » Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 4007



View Profile
« Reply #11 on: December 19, 2018, 16:50:43 pm »

Quote

tested on CB V1.0 (Is it compatible with 0.98 ?)

++
David

No, wrong version of .NET by the look of it.
Logged

Made in England
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 168


View Profile
« Reply #12 on: December 20, 2018, 07:27:34 am »

Dear David

The bug is more devious that I thought - I will work on it.

Geoff
Logged
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 168


View Profile
« Reply #13 on: December 21, 2018, 00:40:48 am »

Dear David

I think I have now fixed the problem - it was related to having a completely flat surface, as suspected, but please try out this new version (1.0.2) and let me know if the problem has gone away.

Also, I think the plugin will only work for CB 1.0

thanks for the patience

Geoff

* ProfileCombine-V1.0.2.zip (181.12 KB - downloaded 53 times.)
« Last Edit: December 22, 2018, 04:25:59 am by GeoffreyGRoy » Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5554



View Profile WWW
« Reply #14 on: January 26, 2019, 01:25:24 am »

Hello Geoff

Plugin added to the web site Wink

http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/profile_combine_EN.html

++
David
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.139 seconds with 19 queries.

Copyright © 2018 HexRay Ltd. | Sitemap