1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 13:50:05 +01:00
dotSCAD/docs/lib3x-bend.md
2022-06-06 13:11:46 +08:00

1.3 KiB

bend

Bends a 3D object into an arc shape.

Parameters

  • size : The size of a cube which can contain the target object.
  • angle : The central angle of the arc shape. The radius of the arc is calculated automatically.
  • frags : Number of fragments. The target object will be cut into frags fragments and recombined into an arc shape. The default value is 24.

Examples

The containing cube of the target object should be laid down on the x-y plane. For example.

use <bend.scad>

x = 9.25;
y = 9.55;
z = 1;  
       
%cube(size = [x, y, z]);
linear_extrude(z) text("A");

bend

Once you have the size of the containing cube, you can use it as the size argument of the bend module.

use <bend.scad>

x = 9.25;
y = 9.55;
z = 1;  
       
*cube(size = [x, y, z]);

bend(size = [x, y, z], angle = 270)
linear_extrude(z) 
	text("A");

bend

The arc shape is smoother if the frags value is larger.

use <bend.scad>

x = 9.25;
y = 9.55;
z = 1;  

bend(size = [x, y, z], angle = 270, frags = 360)
linear_extrude(z) 
	text("A");

bend

This module is especially useful when you want to create things such as PNG to pen holder.