BCad fork

OpenSCAD Compatibility To-Do
Login

OpenSCAD Compatibility To-Do

Status: pre-alpha. Based on OpenSCAD cheatsheet v2021.01.

Missing primitives

Missing transformations

Missing linear_extrude parameters

Missing import() parameters

Missing control flow / list comprehension features

Missing functions

Missing special variables

Missing animation

$fn polygon threshold (bcad-specific)

$fn in OpenSCAD has dual meaning: small values (3-12) specify polygon geometry (hexagonal prisms, etc.), while large values (20, 32, 100) specify rendering quality (smoothness). bcad resolves this ambiguity with a configurable threshold (Preferences > General):

Default threshold: 12. Applied in cylinder(), circle(), and rotate_extrude() context methods.

rotate_extrude with $fn <= threshold creates a polygonal revolution path (N flat segments) via ThruSections(ruled=True), matching OpenSCAD behavior. Segment count uses OpenSCAD formula: ceil(max($fn, 3)) * abs(angle) / 360.