Author Topic: Revolved Extrude - new plugin  (Read 23689 times)

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5269
  • Made in England
    • View Profile
Re: Revolved Extrude - new plugin
« Reply #15 on: October 31, 2018, 18:28:01 pm »
I assume you are getting the correct version from here; http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/RevolveExtrude.html

I tried both zip files without problem, I use Windows built in unzip or 7-zip, https://www.7-zip.org/
« Last Edit: November 01, 2018, 09:13:22 am by EddyCurrent »
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7420
    • View Profile
    • Cambam V1.0 French Doc
Re: Revolved Extrude - new plugin
« Reply #16 on: November 22, 2018, 22:29:01 pm »
Hello

I just realize that I do not see that there is a V3.0  :-[ ; the site show always the 2.1 ... I'll update this soon ...

++
David

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7420
    • View Profile
    • Cambam V1.0 French Doc
Re: Revolved Extrude - new plugin
« Reply #17 on: April 27, 2021, 20:06:22 pm »
Hello Eddy,

With a lot of delay !!  :-[, I just discovers this in the script objects.  ;D (CamBam V1.0 only)

Code: [Select]
import Solids

# create a surface of revolution from all objects on Layer2.
this.Entities.Add(Solids.SurfaceOfRevolution("Layer2",200,0.1,False))

200 = steps around ; ex 4 give a square shape.

0.1 = resolution for the conversion of the profile shape

False/True = revert the faces

A transform/move in the transformation matrix of the script object can be used to shift the 3D shapes away from the 2D profiles, as on the picture and in the script example. Of course, rotation and scale works also the same. (and you can rotate/move the 3D with the mouse too)

Generate a 3D revolution shape with the 2D shapes that are into the layer called "Layer2" ; Editing the 2D shapes used as profiles redraw the 3D shapes (hit F5 when the script object is selected) ; works with all 2D entities used as profile (even spline)

Have a look in the Sample folder to the solids-example.cb file

Maybe it can be a good idea to replace the default script in the options by this one, it will be more useful that the one that write the CamBam logo by default  ;D

++
David
« Last Edit: April 27, 2021, 20:31:07 pm by dh42 »

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5269
  • Made in England
    • View Profile
Re: Revolved Extrude - new plugin
« Reply #18 on: April 27, 2021, 20:21:46 pm »
Excellent find David ! it works very good.
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7420
    • View Profile
    • Cambam V1.0 French Doc
Re: Revolved Extrude - new plugin
« Reply #19 on: April 27, 2021, 20:49:43 pm »
Yep, it's sometime useful to read the doc again ;D ... the Solids-example.cb is mentioned in the French doc but not in the English one ... so I assume that  it's me that add this info to the French doc when I discovers the file in the sample folder (who else!), but I totally forgot it !  ::) :-[

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5269
  • Made in England
    • View Profile
Re: Revolved Extrude - new plugin
« Reply #20 on: May 02, 2021, 21:37:58 pm »
Version 4 attached to first post in this thread.

Thanks to Andy for providing the Python code and thanks to David for finding it and pointing it out.
I have translated the original Python script to a C# plugin, it works much better than my code and is very fast.
Filmed in Supermarionation

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8985
    • View Profile
Re: Revolved Extrude - new plugin
« Reply #21 on: May 02, 2021, 22:14:16 pm »
Eddy!  Thank you for the work you do for us.

Every plug-in you've made for us has good value.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7420
    • View Profile
    • Cambam V1.0 French Doc
Re: Revolved Extrude - new plugin
« Reply #22 on: May 02, 2021, 23:01:53 pm »
Hello

Thanks Eddy  ;D

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5269
  • Made in England
    • View Profile
Re: Revolved Extrude
« Reply #23 on: May 03, 2021, 14:46:41 pm »
Thank you.
I forgot to mention that unlike the script it does not use objects on a particular layer, it uses the SELECTED OBJECTS.
Filmed in Supermarionation

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3355
    • View Profile
Re: Revolved Extrude - new plugin
« Reply #24 on: May 03, 2021, 14:52:57 pm »
As always. NICE JOB! Thanks.
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5269
  • Made in England
    • View Profile
Re: Revolved Extrude - new plugin
« Reply #25 on: May 06, 2021, 14:25:38 pm »
David,

Updated instruction document attached for version 4 of the plugin, can you please update the link on your plugins web page.
« Last Edit: May 07, 2021, 15:16:48 pm by EddyCurrent »
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7420
    • View Profile
    • Cambam V1.0 French Doc
Re: Revolved Extrude - new plugin
« Reply #26 on: May 08, 2021, 23:36:34 pm »
Hello

Done !

Thanks Eddy

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5269
  • Made in England
    • View Profile
Re: Revolved Extrude - update
« Reply #27 on: April 11, 2022, 15:02:20 pm »
Version 5.0 attached to first post in this thread.

1. Increased decimal points of Tolerance value.
2. Added Undo point
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7420
    • View Profile
    • Cambam V1.0 French Doc
Re: Revolved Extrude - new plugin
« Reply #28 on: April 11, 2022, 19:37:47 pm »
Nice,

Thanks ;)

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5269
  • Made in England
    • View Profile
Re: Revolved Extrude - new version
« Reply #29 on: April 14, 2022, 14:15:03 pm »
Following some issues in this thread,  https://cambamcnc.com/forum/index.php?topic=9663.msg74707#msg74707 I revisited the code that Andy produced in Python.

The problem was that the code expected 4 points in which to draw 2 triangular faces however when a point lies exactly at X0 and the polyline is revolved it leaves only 3 points and this was the problem.

I have attached a new version 6 of the plugin to the first post in this thread and it should fix this bug.

When I get some feedback on it I will attach the updated source code.
« Last Edit: April 14, 2022, 14:26:46 pm by EddyCurrent »
Filmed in Supermarionation