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

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Imperial Module for OpenSCAD 3D Printer File Image 1
Imperial Module for OpenSCAD 3D Printer File Image 2
Imperial Module for OpenSCAD 3D Printer File Thumbnail 1
Imperial Module for OpenSCAD 3D Printer File Thumbnail 2

Imperial Module for OpenSCAD

Corona688 avatarCorona688

January 29, 2019

thingiverse-icon
DescriptionCommentsTags

Description

Very often I'll see OpenSCAD code like:

scale(25.4) cylinder(d=1/2, h=5/8, $fn=64);

...to make inch-sized parts. OpenSCAD thinks its making parts 25 times smaller than they are and generates bare-minimum detail unless forced, so $fn gets jammed into every single statement.

$fs can be overrided to overcome that:

for($fs=$fs/25.4) scale(25.4) cylinder(d=1/2, h=5/8);

This generates a sane number of fragments without being forced! Drop this in a handy module and you get:

imperial() cylinder(d=1/2, h=5/8);

License:

Creative Commons - Attribution

Related Models

#3DBenchy - The jolly 3D printing torture-test by CreativeTools.se preview image

#3DBenchy - The jolly 3D printing torture-test by CreativeTools.se

CreativeTools profile image

CreativeTools

90,935

Inch Measuring Tool for Screws, Nuts, Bolt Heads, Wrenches (incl. Hex.), Threads (No metric tool) preview image

Inch Measuring Tool for Screws, Nuts, Bolt Heads, Wrenches (incl. Hex.), Threads (No metric tool)

DJ profile image

DJ

2,409

Height marking gauge (10–100 mm) preview image

Height marking gauge (10–100 mm)

Rene Czerner profile image

Rene Czerner

821

Modular Mounting System preview image

Modular Mounting System

HeyVye profile image

HeyVye

69,165

Auto-Releasing Screw Holder preview image

Auto-Releasing Screw Holder

Magmabow profile image

Magmabow

1,663

US General, Craftsman, Snap-On Tool Box Label/Tags preview image

US General, Craftsman, Snap-On Tool Box Label/Tags

Match_King profile image

Match_King

183

Venus Box preview image

Venus Box

Prot0typ1cal profile image

Prot0typ1cal

48,776

Tracing ruler preview image

Tracing ruler

Zdrapek profile image

Zdrapek

1,967