Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WebWeaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fxk8y
WebWeaver
Compare revisions
f37f34c0e6133d5fcf7af7d8b34c8b0d2dbef059 to 59bafc6673e78336a33f2f4403b41c2a40878649
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
fxk8y/WebWeaver
Select target project
No results found
59bafc6673e78336a33f2f4403b41c2a40878649
Select Git revision
Branches
master
Swap
Target
fxk8y/WebWeaver
Select target project
fxk8y/WebWeaver
1 result
f37f34c0e6133d5fcf7af7d8b34c8b0d2dbef059
Select Git revision
Branches
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Adding cube module with round edges
· 59bafc66
fxk8y
authored
3 years ago
59bafc66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scad/util/common.scad
+19
-0
19 additions, 0 deletions
scad/util/common.scad
with
19 additions
and
0 deletions
scad/util/common.scad
View file @
59bafc66
...
...
@@ -23,6 +23,7 @@ module roundTri(w, h, r, style="inner") {
}
/**
*
* TODO: Moar documentation!
...
...
@@ -41,6 +42,24 @@ module roundRect(w, h, r, center=false, centerX=false, centerY=false) {
}
/**
*
* TODO: Moar documentation!
*
*/
module roundCube(sx, sy, sz, r, center=false, centerX=false, centerY=false, centerZ=false) {
tx = center || centerX ? -sx/2 : 0;
ty = center || centerY ? -sy/2 : 0;
tz = center || centerZ ? -sz/2 : 0;
translate([tx, ty, tz])
if (r > 0)
hull() for (_tx=[r, sx-r], _ty=[r, sy-r], _tz=[r, sz-r]) translate([_tx, _ty, _tz]) sphere(r=r);
else
cube([sx, sy, sz]);
}
/**
*
* TODO: Proper documentation!
...
...
This diff is collapsed.
Click to expand it.