• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
fncylinder() OpenSCAD module 3D Printer File Image 1
fncylinder() OpenSCAD module 3D Printer File Thumbnail 1

fncylinder() OpenSCAD module

Professional3D avatarProfessional3D

June 4, 2015

thingiverse-icon
DescriptionCommentsTags

Description

This a module for OpenSCAD to create a cylinder with dynamic or fixed fn for consistent resolution.
With a fixed $fn, large cylinders are jagged and small cylinders are ultrafine.
With this module every cylinder has a fixed resolution that can be set to match the resolution of your printer.

Usage:
Like the build in module cylinder() this module accepts r,r2,d,d2,h, and center.
It doens't accept $fn, use fn instead, if you need a fixed $fn (i.e. for hexagonal cylinders).
If fn isn't specified, $fn is calculated from the radius or diameter to match the given resolution.
Resolution can be set globaly and individual (optional).
The variable "resolution" is the length of each segment of the cylinder to aproxximate a circle.
That means a smaller resolution value means more detail!
Caution: if you choose a very small resolution OpenSCAD will work quite hard as the $fn will rise!
The variable enlarge is used to enlarge the cylinder hight, to avoid zero walls, when using difference().
No more translate([0,0,-1]) cylinder(r=5, h=10+2), use fncylinder(r=5, h=10,enlarge=1) instead.

License:

Creative Commons - Attribution - Non-Commercial - Share Alike

Related Models

Digital Sundial preview image

Digital Sundial

Mojoptix profile image

Mojoptix

67,462

Cylinder lock model preview image

Cylinder lock model

Thorin Oakenshield profile image

Thorin Oakenshield

4,977

Cylinder preview image

Cylinder

repair3D profile image

repair3D

97

Parametric Hinge preview image

Parametric Hinge

rohingosling profile image

rohingosling

51,960

V-8 Engine Block preview image

V-8 Engine Block

Triple G Workshop profile image

Triple G Workshop

1,640

Cylinder preview image

Cylinder

RU3D profile image

RU3D

67

Sand Belt Stand for Dremel 3000/4000 preview image

Sand Belt Stand for Dremel 3000/4000

Balthartur profile image

Balthartur

24,067

Accessories for Festool MFT 3 bench preview image

Accessories for Festool MFT 3 bench

AK3D profile image

AK3D

880