Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Project multiple paths to a surface offset from each other

#1
I successfully managed to project my path to a surface using this code found here on the on the RoboDK github.

We are about to 3D print on a curved surface, so I need the tool to follow the path and recalculate the normals accordingly, but in each layer, I need to offset the path at each layer.
 
I thought that I would project the path multiple times and project it to a surface with this code, but I don't know how to set up the layer offset inside the script.
 
If you have any other ideas on how to achieve this, please let me know. I am all ears.

Thank you very much.
#2
Do you have your curve normals perpendincular to the surface? If so, you can create new curve points by offsetting your surface.

Example:
Code:
# Set the curve offset in mm:
offset_mm = 5
# given a curve point, offset it:
curve_xyzijk = curve[point]
x,y,z,i,j,k =  curve_xyzijk[:6]
offset_vector = mult3([i,j,k], offset_mm)
curve_xyzijk_offset = add3([x,y,z], offset_vector)
  




Users browsing this thread:
1 Guest(s)