Author Topic: Curved surface script  (Read 181797 times)

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7589
    • View Profile
    • Cambam V1.0 French Doc
Re: Curved surface script
« Reply #120 on: May 04, 2020, 12:51:33 pm »
Hello Geoff

Thanks for this new release.  ;)

Some texts are not translatable (see photo)

just for info to update the website, is this new version still running on CB 0.98 or it works only with 1.0 ?
 
++
David
« Last Edit: May 04, 2020, 12:56:49 pm by dh42 »

Offline GeoffreyGRoy

  • Wookie
  • ****
  • Posts: 278
    • View Profile
Re: Curved surface script
« Reply #121 on: May 05, 2020, 01:32:11 am »
Thanks David, I will fix in the next release - I am waiting for some more feedback/bugs to be found.

This version is for V1.0 and 64 bit (probably works for 32 bit - not tested).

Geoff

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3382
    • View Profile
Re: Curved surface script
« Reply #122 on: May 05, 2020, 12:07:41 pm »
Hi Geoff,

I'm pretty sure my settings are off that is why can't get this plugin to work. When clicking the run button it does create the statistics, new layer, but does not create the solid surface etc...

screen shot and CB file attached.

Bubba 
My 2¢

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

Offline GeoffreyGRoy

  • Wookie
  • ****
  • Posts: 278
    • View Profile
Re: Curved surface script
« Reply #123 on: May 06, 2020, 00:47:43 am »
Dear Bubba

The main problem is that the Accuracy setting is set at 2" in your image Capture.JPG.  As I indicated in a previous message this default value is wrong for Imperial units.  It should be of the order of 0.02".  This bug will be fixed in the next release.  But, you can change this value (see TestBa.png in the attachment).

Also as I previously explained the Profile shape needs to be carefully managed.  In your file the Polyline shape contains Arcs.  I have updated your model (in the attachment) as follows:
(a) Copied Polyline(8) to a new Layer as Polyline(1)
(b) Remove arcs form Polyline(1) with an accuracy of 0.001
(c) Rotate Polyline(1) by 90 deg about X-axis
(d) Apply Transformations to Polyline(1)
(e) Select Polyline(1)
(f) Launch the Plugin and set the Accuracy to a small value.

The results can then be seen in TestBb.png.  I have also included the updated CB model as above.

I will be posting the updated version of the plugin in a few days, I am just waiting to see if I get any more bug reports.  As I also explained previously there is another bug that you may see in the results as parts of your Profile shape lie exactly on the X,Y plane - you may see some artifacts in the result - these can be resolved by moving the Profile shape up by 0,.001"

I hope this helps

Geoff

Offline ThisAmplifierIsLoud

  • Storm Trooper
  • ***
  • Posts: 231
  • Jam it !
    • View Profile
Re: Curved surface script
« Reply #124 on: May 06, 2020, 07:11:04 am »
Thanks Geoff, for this wonderful plugin.
I really like it.

I have a wish : Wouldn´t it be nice to store and load the settings ?

best regards

Bernhard

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: Curved surface script
« Reply #125 on: May 06, 2020, 10:05:47 am »
The field "Path Shape" should be "Path Shape ID" where only the ID number of the path shape should be entered.

Filmed in Supermarionation

Offline GeoffreyGRoy

  • Wookie
  • ****
  • Posts: 278
    • View Profile
Re: Curved surface script
« Reply #126 on: May 07, 2020, 00:00:51 am »
Dear Edddy

Thanks for the comment, I will change the caption to "Path Shape [ID]".  I think it is still useful to include "Polyline", "Arc" or "Circle" (it can only be one of these) as this offers a confirmation of the selected Path shape.

Dear gmoo

The next release will save parameter values between CamBam sessions

Geoff

Offline GeoffreyGRoy

  • Wookie
  • ****
  • Posts: 278
    • View Profile
Re: Curved surface script
« Reply #127 on: May 07, 2020, 04:39:17 am »
Dear Bernhard

Concerning saving settings, I can do it. Which option would be best?

(a) Automatically save the current settings, with an option to restore the defaults.
(b) An explicit Save/Restore option in the plugin dialog

I am trying to use the Properties.Settings object as provided in C#, at the moment I can figure out how to have a single set of user defined Settings, though multiple sets may be possible.

Geoff

Offline ThisAmplifierIsLoud

  • Storm Trooper
  • ***
  • Posts: 231
  • Jam it !
    • View Profile
Re: Curved surface script
« Reply #128 on: May 07, 2020, 06:36:51 am »
Hi Geoff,

explicite files would be great, So I can handle with different "templates".

best regards

Bernhard

Offline ThisAmplifierIsLoud

  • Storm Trooper
  • ***
  • Posts: 231
  • Jam it !
    • View Profile
Re: Curved surface script
« Reply #129 on: May 07, 2020, 07:26:36 am »
BTW...with the help from your plugin I can make these nice little bowls
from cheap fire-wood.

Best regards

Bernhard

« Last Edit: May 07, 2020, 07:29:20 am by gmoo »
best regards

Bernhard

Offline GeoffreyGRoy

  • Wookie
  • ****
  • Posts: 278
    • View Profile
Re: Curved surface script
« Reply #130 on: May 13, 2020, 08:30:15 am »
Dear All

I am attaching vers 2.0.1 that fixes all (I hope) of the issues raised above.  Please test and let me know what I have missed. 

There has been a number of significant changes from v2.0.0, please check the User Guide for details.  I have found a number of bugs that result from very particular geometric conditions, and added the capability to save the parameter settings across CamBam launches for convenience

Geoff

Offline ThisAmplifierIsLoud

  • Storm Trooper
  • ***
  • Posts: 231
  • Jam it !
    • View Profile
Re: Curved surface script
« Reply #131 on: May 13, 2020, 13:18:11 pm »
Hi Geoff,

played around a little with spherical surface and found bugs at the load/save settings area.

- Center Point XY, Radius, from/to angle is always 0 after loading
- load directly after store setting raises exception :

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at CurvedSurfacePlugin.CurvedSurfaceUI.setData()
   at CurvedSurfacePlugin.CurvedSurfaceUI.loadSettingsB_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4121.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CamBam
    Assembly Version: 1.0.7364.41821
    Win32 Version: 1.0.7364.41821
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/CamBam.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4121.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4001.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
CamBam.CAD
    Assembly Version: 1.0.7364.41819
    Win32 Version: 1.0.7364.41819
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/CamBam.CAD.DLL
----------------------------------------
CamBam.Geom
    Assembly Version: 1.0.7364.41817
    Win32 Version: 1.0.7364.41817
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/CamBam.Geom.DLL
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4121.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Design
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CamBamLathe
    Assembly Version: 1.1.7364.1589
    Win32 Version: 1.1.7364.1589
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/CamBamLathe.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CamBamPlus_Toolkit
    Assembly Version: 1.1.7364.1587
    Win32 Version: 1.1.7364.1587
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/CamBamPlus_Toolkit.dll
----------------------------------------
CBubble
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/CBubble.dll
----------------------------------------
CurvedSurfacePlugin
    Assembly Version: 2.0.1.0
    Win32 Version: 2.0.1.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/CurvedSurfacePlugin.dll
----------------------------------------
ExcellonIO
    Assembly Version: 1.5.7364.1595
    Win32 Version: 1.5.7364.1595
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/ExcellonIO.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
FileMerge
    Assembly Version: 1.5.5745.22477
    Win32 Version: 1.5.5745.22477
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/FileMerge.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Grid Manager
    Assembly Version: 1.0.2.0
    Win32 Version: 1.0.2.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/Grid%20Manager.dll
----------------------------------------
HeightMapPlugin
    Assembly Version: 1.3.7364.1595
    Win32 Version: 1.3.7364.1595
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/HeightMapPlugin.dll
----------------------------------------
Inlay Toolpath
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/Inlay%20Toolpath.dll
----------------------------------------
PolylineSmooth
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/PolylineSmooth.dll
----------------------------------------
Profile2Helix
    Assembly Version: 7.1.0.0
    Win32 Version: 7.1.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/Profile2Helix.dll
----------------------------------------
script_launcher
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/script_launcher.dll
----------------------------------------
Snappy
    Assembly Version: 8.8.0.0
    Win32 Version: 8.8.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/Snappy.dll
----------------------------------------
TextOnPolyline
    Assembly Version: 2.3.0.0
    Win32 Version: 2.3.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/TextOnPolyline.dll
----------------------------------------
Texturize
    Assembly Version: 1.10.0.0
    Win32 Version: 1.10.0.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/Texturize.dll
----------------------------------------
VoronoiBuilder
    Assembly Version: 1.0.7.0
    Win32 Version: 1.0.7
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/plugins/VoronoiBuilder.dll
----------------------------------------
OpenTK
    Assembly Version: 3.1.0.0
    Win32 Version: 3.1.0
    CodeBase: file:///C:/Program%20Files/CamBam%20plus%201.0/OpenTK.DLL
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Drawing.Design
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
best regards

Bernhard

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: Curved surface script
« Reply #132 on: May 13, 2020, 13:40:02 pm »
It's easier to use the Registry for save/load settings, it works with Linux too.
I use the form opening and form closing events for that.

Of course you only get the last settings rather than a choice of others.
« Last Edit: May 13, 2020, 13:41:58 pm by EddyCurrent »
Filmed in Supermarionation

Offline ThisAmplifierIsLoud

  • Storm Trooper
  • ***
  • Posts: 231
  • Jam it !
    • View Profile
Re: Curved surface script
« Reply #133 on: May 13, 2020, 14:05:02 pm »
No, Sir,

IMHO the registry is the WORST place to store the settings.

Using simple file file I can

- have a much as I want
- move, copy, delete, whatever I want to
- give them free names
- port to another computer
- system platform independant

best regards

Bernhard
best regards

Bernhard

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 525
    • View Profile
Re: Curved surface script
« Reply #134 on: May 13, 2020, 17:28:32 pm »
I agree with @gmoo, i have used simply ini file stored in Cambam plugin directory, or even in another place, simply, readable with a simple text editor, portable.

Hi to all.

Regards

Carlo D.
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam