CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 16, 2018, 19:02:07 pm


Login with username, password and session length


Pages: [1] 2 3 ... 8
  Print  
Author Topic: Curved surface script  (Read 32135 times)
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 132


View Profile
« on: June 12, 2014, 07:59:25 am »

I have developed a CamBam script (VBS) that will create a circular singular curved surface (in the vertical plane) - based on the sloping line script at http://www.cambam.info/ref/script.sloped-lines. So far it appears to work quite well.  It uses a similar set of parameters as the sloped line script:
  • A start point and an end point
  • A width, or 0 for a single cut
  • A depth of cut at the end point
  • There are options to create an Engrave MOP with some default parameters set, and a G-Code file if required.

The top of the curve is assumed to be a Z=0.  By using a ball mill and adjusting the step over distance rather smooth curved surfaces can be cut.

The script can be down loaded from the link below.

I would be interested in receiving suggestions for improvements or if any bugs are found.

thanks

Geoff

Note: The latest version of the CurvedSurface Plugin (described later) is also attached here.

* curvedsurface-1.04.zip (2.75 KB - downloaded 230 times.)
* CurvedSurfacePlugin-1.0.1.0.zip (678.67 KB - downloaded 510 times.)
« Last Edit: January 14, 2015, 05:48:31 am by GeoffreyGRoy » Logged
dave benson
CNC Jedi
*****
Offline Offline

Posts: 906


View Profile
« Reply #1 on: June 12, 2014, 13:47:12 pm »

Well done Geoff,  Works as advertised.
Dave.
Logged
Garyhlucas
CNC Jedi
*****
Online Online

Posts: 1122


View Profile
« Reply #2 on: June 12, 2014, 22:33:40 pm »

Geoff,
Very nice. How about a  version to do this kind of part.  This is an 13.5" diameter flange that is being cut to fit against a 120" diameter tank.  I also cut one to go inside.


* IMG_0864.JPG (1665.7 KB, 3264x2448 - viewed 345 times.)
Logged

Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7559



View Profile
« Reply #3 on: June 12, 2014, 22:50:16 pm »

Gary,
Unless there's some sort of distortion in the photo, that looks like the inside one...Huh

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 132


View Profile
« Reply #4 on: June 13, 2014, 00:59:53 am »

I have also created a script to generate spherical surfaces with the top of the sphere at Z=0, and a specified depth at a given radius.  If this is also of interest then it can be downloaded from the link below:


It uses a similar set of parameters as the curved surface script.

Again comments and bugs are appreciated.  Note that V1.00 did have some minor bugs.

Geoff

* sphericalsurface-1.01.zip (2.93 KB - downloaded 162 times.)
« Last Edit: June 14, 2014, 09:30:16 am by GeoffreyGRoy » Logged
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7559



View Profile
« Reply #5 on: June 13, 2014, 12:05:37 pm »

Very nice. How about a  version to do this kind of part.  This is an 13.5" diameter flange that is being cut to fit against a 120" diameter tank.  I also cut one to go inside.
-----------------

Gary, one other word about that.

His script already does that kind of part -- in a sense.  It creates half of the surface on which to map your other features.  You can mirror the surface he creates, and it becomes a barrel-shaped surface like you want.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
Garyhlucas
CNC Jedi
*****
Online Online

Posts: 1122


View Profile
« Reply #6 on: June 13, 2014, 21:09:35 pm »

Gary,
Unless there's some sort of distortion in the photo, that looks like the inside one...Huh

Lloyd

Lloyd,
You are right. I took the photo to show an engineer at my previous employer that I could do these on my home built machine.  We used to send these out to get done in different size flanges and different radiuses all the time.
Logged

Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/
Garyhlucas
CNC Jedi
*****
Online Online

Posts: 1122


View Profile
« Reply #7 on: June 13, 2014, 21:16:42 pm »

I have also created a script to generate spherical surfaces with the top of the sphere at Z=0, and a specified depth at a given radius.  If this is also of interest then it can be downloaded from:

http://www.cadplan.com.au/blog/index.php?entry=Creating-Spherical-Surfaces-with-CamBam

It uses a similar set of parameters as the curved surface script.

Again comments and bugs are appreciated.

Geoff

Geoff,
Can it do a spherical pocket?  I have a job to do with 12 spherical pockets for a bearing ball to sit in to build a 3D Delta style printer.
Logged

Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/
Garyhlucas
CNC Jedi
*****
Online Online

Posts: 1122


View Profile
« Reply #8 on: June 13, 2014, 21:22:18 pm »

Very nice. How about a  version to do this kind of part.  This is an 13.5" diameter flange that is being cut to fit against a 120" diameter tank.  I also cut one to go inside.
-----------------

Gary, one other word about that.

His script already does that kind of part -- in a sense.  It creates half of the surface on which to map your other features.  You can mirror the surface he creates, and it becomes a barrel-shaped surface like you want.

Lloyd
Sounds good Lloyd, I'll have to try that.

You know back in the 80s and 90s I did quite a bit of programming. I still do PLC programming and watching you guys here makes me want to give it a try again. As soon as I stop working 60 hours a week.
Logged

Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7559



View Profile
« Reply #9 on: June 13, 2014, 21:48:05 pm »


Gary,
You wouldn't have to modify the program.  Just create one of his "half barrel" shapes, then use CB to reflect it and join it to the other half.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
Bob La Londe
CNC Jedi
*****
Offline Offline

Posts: 3284


^ 8.5 pounds on my own hand poured bait.


View Profile WWW
« Reply #10 on: June 13, 2014, 23:44:07 pm »

You know CB can already extrude a surface from a polyline right?  Then you can rotate it and position it as needed.  Am I missing something? 

Logged

Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7559



View Profile
« Reply #11 on: June 14, 2014, 00:04:07 am »

No, Bob.  You're right.  This just makes it more 'natural', and in fewer steps (with subsequent necessary confirmations).

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 132


View Profile
« Reply #12 on: June 15, 2014, 08:25:19 am »

Following the comments and some further testing I can now release three scripts for constructing 3D circular surfaces, two updated ones and one new one.  In each case some bugs have been fixed, and in particular a facility has been added to specify a stepover for roughing and a stepover for finishing.  This can reduce cut times significantly while not compromising finish quality.  Also, it is now possible to produce a finish cut only allowing for a separate cut for roughing, either using the same script, or some other strategy.

More details can be found on my web site at http://www.cadplan.com.au

Comments and feed back most welcome.

Geoff

* curvedsurface-1.05.zip (2.92 KB - downloaded 167 times.)
* sphericalpocket-1.01.zip (3.14 KB - downloaded 172 times.)
* sphericalsurface-1.02.zip (3.09 KB - downloaded 158 times.)
Logged
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 7559



View Profile
« Reply #13 on: June 15, 2014, 12:11:05 pm »

Geoff,

Thanks!  That's good stuff.  I have a customer project with a need for the spherical pocket script coming up next month.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
GeoffreyGRoy
Storm Trooper
***
Offline Offline

Posts: 132


View Profile
« Reply #14 on: June 22, 2014, 01:23:56 am »

I have now added another script to my small collection -to create a curved pocket using the same approach as the others.  In this case the curve is like a horizontal cylinder pocket by specifying:
  • The depth at the centre line
  • The distance from the centre line to the edge (i.e. half the length)
  • The width of the cut of the cylinder shape  

Please advise if any bugs are found.

Geoff

* curvedpocket-1.01.zip (3.04 KB - downloaded 160 times.)
« Last Edit: June 22, 2014, 02:39:52 am by GeoffreyGRoy » Logged
Pages: [1] 2 3 ... 8
  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 2.261 seconds with 19 queries.

Copyright © 2018 HexRay Ltd. | Sitemap