-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from jsconan/release-0.4.0
Release 0.4.0
- Loading branch information
Showing
91 changed files
with
5,053 additions
and
584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/** | ||
* @license | ||
* GPLv3 License | ||
* | ||
* Copyright (c) 2020 Jean-Sebastien CONAN | ||
* | ||
* This file is part of jsconan/things. | ||
* | ||
* jsconan/things is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* jsconan/things is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with jsconan/things. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* A race track system for 1/24 to 1/32 scale RC cars. | ||
* | ||
* A bent mast to clip accessories onto the barrier holders. | ||
* | ||
* @author jsconan | ||
*/ | ||
|
||
// Import the project's setup. | ||
include <../../config/setup.scad> | ||
|
||
/** | ||
* Gets the length of the final shape for a bent mast. | ||
* @returns Number | ||
*/ | ||
function finalBentMastLength() = | ||
getAccessoryBentMastLength( | ||
width = mastWidth, | ||
height = [mastWidth, mastHeight], | ||
wall = accessoryClipThickness, | ||
base = barrierHolderBase | ||
) | ||
; | ||
|
||
/** | ||
* Gets the width of the final shape for a bent mast. | ||
* @returns Number | ||
*/ | ||
function finalBentMastWidth() = | ||
getAccessoryBentMastWidth( | ||
width = mastWidth, | ||
height = [mastWidth, mastHeight], | ||
wall = accessoryClipThickness, | ||
base = barrierHolderBase | ||
) | ||
; | ||
|
||
/** | ||
* Gets the horizontal interval of the final shape for a bent mast. | ||
* @returns Number | ||
*/ | ||
function finalBentMastIntervalX() = | ||
getPrintInterval( | ||
finalBentMastLength() | ||
) | ||
; | ||
|
||
/** | ||
* Gets the vertical interval of the final shape for a bent mast. | ||
* @returns Number | ||
*/ | ||
function finalBentMastIntervalY() = | ||
getPrintInterval( | ||
finalBentMastWidth() | ||
) | ||
; | ||
|
||
/** | ||
* Defines the final shape for a bent mast. | ||
*/ | ||
module finalBentMast() { | ||
accessoryBentMast( | ||
width = mastWidth, | ||
height = [mastWidth, mastHeight], | ||
wall = accessoryClipThickness, | ||
base = barrierHolderBase, | ||
thickness = barrierBodyThickness | ||
); | ||
} | ||
|
||
// Sets the minimum facet angle and size using the defined render mode. | ||
applyMode(mode=renderMode) { | ||
// Uncomment the next line to cut a sample from the object | ||
//sample(size=[DEFAULT_BUILD_PLATE_SIZE, DEFAULT_BUILD_PLATE_SIZE, 5], offset=[0, 0, 0]) | ||
finalBentMast(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.