Removed all uses and incudes. Document all includes needed for each file. Added std.scad include.

This commit is contained in:
Revar Desmera 2019-04-19 00:25:10 -07:00
parent a46ea27fca
commit 1d6aefc867
23 changed files with 62 additions and 133 deletions

View File

@ -3,8 +3,9 @@
// Bezier functions and modules.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/beziers.scad>
// include <BOSL2/std.scad>
// include <BOSL2/paths.scad>
// include <BOSL2/beziers.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,11 +38,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <constants.scad>
use <math.scad>
use <paths.scad>
use <transforms.scad>
// Section: Terminology
// **Polyline**: A series of points joined by straight line segements.

View File

@ -3,7 +3,7 @@
// Useful Constants.
// To use this, add the following line to the top of your file.
// ```
// include <BOSL2/constants.scad>
// include <BOSL2/std.scad>
// ```
//////////////////////////////////////////////////////////////////////

View File

@ -3,15 +3,13 @@
// Functions to create 2D and 3D convex hulls.
// To use, add the following line to the beginning of your file:
// ```
// include <BOSL2/std.scad>
// include <BOSL2/convex_hull.scad>
// ```
// Derived from Linde's Hull:
// - https://github.com/openscad/scad-utils
//////////////////////////////////////////////////////////////////////
include <math.scad>
// Section: Generalized Hull

View File

@ -3,8 +3,10 @@
// Helpers to make debugging OpenScad code easier.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/debug.scad>
// include <BOSL2/std.scad>
// include <BOSL2/paths.scad>
// include <BOSL2/beziers.scad>
// include <BOSL2/debug.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -36,10 +38,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <transforms.scad>
include <math.scad>
include <paths.scad>
include <beziers.scad>
// Section: Debugging Polyhedrons

View File

@ -19,15 +19,12 @@
//
// To use, add the following line to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/involute_gears.scad>
// include <BOSL2/std.scad>
// include <BOSL2/involute_gears.scad>
// ```
//////////////////////////////////////////////////////////////////////////////////////////////
use <transforms.scad>
include <constants.scad>
// Section: Terminology
// The outline of a gear is a smooth circle (the "pitch circle") which has

View File

@ -3,8 +3,8 @@
// Snap-together joiners.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/joiners.scad>
// include <BOSL2/std.scad>
// include <BOSL2/joiners.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,11 +37,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <transforms.scad>
use <shapes.scad>
include <compat.scad>
include <constants.scad>
// Section: Half Joiners

View File

@ -3,8 +3,9 @@
// Linear Bearing clips/holders.
// To use, add these lines to the top of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/linear_bearings.scad>
// include <BOSL2/std.scad>
// include <BOSL2/metric_screws.scad>
// include <BOSL2/linear_bearings.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,10 +38,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <shapes.scad>
include <metric_screws.scad>
// Section: Functions

View File

@ -3,8 +3,7 @@
// Masking shapes.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/masks.scad>
// include <BOSL2/std.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,12 +36,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <transforms.scad>
use <shapes.scad>
use <math.scad>
include <compat.scad>
include <constants.scad>
// Section: General Masks

View File

@ -3,7 +3,7 @@
// Math helper functions.
// To use, add the following lines to the beginning of your file:
// ```
// use <BOSL2/math.scad>
// use <BOSL2/std.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -36,9 +36,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <constants.scad>
include <compat.scad>
// Section: Math Constants

View File

@ -3,8 +3,11 @@
// Screws, Bolts, and Nuts.
// To use, include the following lines at the top of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/metric_screws.scad>
// include <BOSL2/std.scad>
// include <BOSL2/threading.scad>
// include <BOSL2/phillips_drive.scad>
// include <BOSL2/torx_drive.scad>
// include <BOSL2/metric_screws.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,14 +40,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <constants.scad>
use <transforms.scad>
use <shapes.scad>
use <threading.scad>
use <phillips_drive.scad>
use <torx_drive.scad>
use <math.scad>
// Section: Functions

View File

@ -3,8 +3,8 @@
// Masks and models for NEMA stepper motors.
// To use, add these lines to the top of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/nema_steppers.scad>
// include <BOSL2/std.scad>
// include <BOSL2/nema_steppers.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -36,11 +36,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <constants.scad>
use <transforms.scad>
use <shapes.scad>
use <math.scad>
use <compat.scad>
// Section: Functions

View File

@ -3,8 +3,10 @@
// Polylines, polygons and paths.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/paths.scad>
// include <BOSL2/std.scad>
// include <BOSL2/quaternions.scad>
// include <BOSL2/triangulation.scad>
// include <BOSL2/paths.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,12 +39,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <constants.scad>
use <transforms.scad>
use <math.scad>
use <quaternions.scad>
use <triangulation.scad>
// Section: Functions

View File

@ -3,8 +3,8 @@
// Phillips driver bits
// To use, add these lines to the top of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/phillips_drive.scad>
// include <BOSL2/std.scad>
// include <BOSL2/phillips_drive.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,12 +37,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <transforms.scad>
use <shapes.scad>
include <constants.scad>
include <compat.scad>
// Section: Modules

View File

@ -4,8 +4,7 @@
// other BOSL2 library shapes and utilities.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/primitives.scad>
// include <BOSL2/std.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -38,11 +37,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <constants.scad>
include <compat.scad>
use <transforms.scad>
use <math.scad>
// Section: Primitive Shapes

View File

@ -3,7 +3,8 @@
// Support for Quaternions.
// To use, add the following line to the beginning of your file:
// ```
// use <BOSL2/quaternions.scad>
// include <BOSL2/std.scad>
// include <BOSL2/quaternions.scad>
// ```
///////////////////////////////////////////
@ -36,8 +37,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <math.scad>
// Section: Quaternions
// Quaternions are fast methods of storing and calculating arbitrary rotations.

View File

@ -3,8 +3,7 @@
// Common useful shapes and structured objects.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/shapes.scad>
// include <BOSL2/std.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,11 +36,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <transforms.scad>
use <math.scad>
include <compat.scad>
include <constants.scad>
// Section: Cuboids

View File

@ -3,8 +3,8 @@
// Simple V-groove based sliders and rails.
// To use, add these lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/sliders.scad>
// include <BOSL2/std.scad>
// include <BOSL2/sliders.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -36,10 +36,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <transforms.scad>
use <shapes.scad>
include <compat.scad>
include <constants.scad>
// Section: Modules

View File

@ -1,5 +1,10 @@
//////////////////////////////////////////////////////////////////////
// ACME Trapezoidal-threaded Screw Rods and Nuts
// LibFile: std.scad
// File that includes the standard BOSL include files.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/std.scad>
// ```
//////////////////////////////////////////////////////////////////////
/*
@ -30,8 +35,15 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <threading.scad>
include <BOSL2/constants.scad>
include <BOSL2/compat.scad>
include <BOSL2/math.scad>
include <BOSL2/transforms.scad>
include <BOSL2/shapes.scad>
include <BOSL2/masks.scad>
include <BOSL2/primitives.scad>
// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap

View File

@ -3,8 +3,8 @@
// Triangular and Trapezoidal-Threaded Screw Rods and Nuts.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/threading.scad>
// include <BOSL2/std.scad>
// include <BOSL2/threading.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -36,10 +36,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <constants.scad>
use <transforms.scad>
use <masks.scad>
use <math.scad>
function _trpzd_thread_pt(thread, threads, start, starts, astep, asteps, part, parts) =

View File

@ -3,8 +3,8 @@
// Torx driver bits
// To use, add these lines to the top of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/torx_drive.scad>
// include <BOSL2/std.scad>
// include <BOSL2/torx_drive.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,11 +37,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <transforms.scad>
use <math.scad>
include <constants.scad>
include <compat.scad>
// Section: Functions

View File

@ -3,8 +3,7 @@
// This is the file that the most commonly used transformations, distributors, and mutator are in.
// To use, add the following lines to the beginning of your file:
// ```
// include <BOSL2/constants.scad>
// use <BOSL2/transforms.scad>
// include <BOSL2/std.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -37,11 +36,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <math.scad>
include <compat.scad>
include <constants.scad>
//////////////////////////////////////////////////////////////////////
// Section: Translations

View File

@ -3,7 +3,8 @@
// Functions to triangulate polyhedron faces.
// To use, add the following lines to the beginning of your file:
// ```
// use <BOSL2/triangulation.scad>
// include <BOSL2/std.scad>
// include <BOSL2/triangulation.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -36,8 +37,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
use <math.scad>
// Section: Functions

View File

@ -3,7 +3,10 @@
// Rendering for wiring bundles
// To use, include the following line at the top of your file:
// ```
// use <BOSL2/wiring.scad>
// include <BOSL2/std.scad>
// include <BOSL2/paths.scad>
// include <BOSL2/beziers.scad>
// include <BOSL2/wiring.scad>
// ```
//////////////////////////////////////////////////////////////////////
@ -36,10 +39,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include <math.scad>
include <paths.scad>
include <beziers.scad>
// Section: Functions