Skip to content

Instantly share code, notes, and snippets.

View Octogonapus's full-sized avatar

:) Octogonapus

  • Leuko
  • 23:16 (UTC -04:00)
View GitHub Profile
@Octogonapus
Octogonapus / filletASlice.groovy
Created February 25, 2020 17:47 — forked from madhephaestus/filletASlice.groovy
Slice a csg and fillet around the slice
double rad =2
def base = new Cube(20).toCSG()
.difference(new Cube(5,10,20).toCSG())
.difference(new Cube(10,5,20).toCSG())
.rotz(5)
.toZMin()
List<Polygon> polys = Slice.slice(base)
return [Fillet.outerFillet( base,(double)rad),polys]
return new Cube( 40,// X dimention
60,// Y dimention
80// Z dimention
).toCSG()// this converts from the geometry to an object we can work with
@Octogonapus
Octogonapus / ASimpleBezier.groovy
Created January 22, 2020 18:23 — forked from madhephaestus/.gitignore
Demonstrate the new bezier extrude API
import eu.mihosoft.vrl.v3d.Extrude;
CSG part = new Cube(10).toCSG()
ArrayList<CSG> parts = new ArrayList<CSG>()
int numParts = 10
for(int i=0;i<numParts;i++){
//println scale
parts.add(part.clone())
@Octogonapus
Octogonapus / slice.groovy
Last active February 28, 2020 19:08 — forked from madhephaestus/slice.groovy
slice
CSG motor = Vitamins.get("hobbyServo", "standardMicro")
// Vitamins.get("hobbyServo", "standardMicro") Vitamins.get("stepperMotor", "GenericNEMA14") Vitamins.get("roundMotor", "WPI-gb37y3530-50en")
CSG motorShaft = Vitamins.get("hobbyServoHorn", "standardMicro1")
// Vitamins.get("hobbyServoHorn", "standardMicro1") Vitamins.get("dShaft", "5mm") Vitamins.get("dShaft", "WPI-gb37y3530-50en")
double pitch = 3.0
double thickness = 10.0
double gearDiameter = 30.0
double gearTeeth = (gearDiameter * Math.PI) / pitch
def gearGenResult = ScriptingEngine.gitScriptRun(
"https://github.com/madhephaestus/GearGenerator.git",
@Octogonapus
Octogonapus / Windows Defender Exclusions for Developer.ps1
Created September 11, 2019 15:55 — forked from nerzhulart/Windows Defender Exclusions for Developer.ps1
Adds Windows Defender exclusions for developers (Visual Studio, JetBrains Rider, IntellIJ Idea, Git, MsBuild, dotnet, mono etc.)
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
@Octogonapus
Octogonapus / 6DOFHephaestusWorkCell.xml
Created November 28, 2018 18:05 — forked from madhephaestus/6DOFHephaestusWorkCell.xml
6DOFHephaestusWorkCell copy of HephaestusWorkCell
<root>
<mobilebase>
<cadEngine>
<git>https://github.com/madhephaestus/SeriesElasticActuator.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<driveEngine>
<git>https://gist.github.com/564eed11f7a448e39ef9964f5485c0a4.git</git>
<file>WalkingDriveEngine.groovy</file>
</driveEngine>
@Octogonapus
Octogonapus / defaultArm.xml
Last active February 28, 2018 21:13 — forked from madhephaestus/defaultFixed.xml
Default Appendages
<root>
<appendage>
<name>DefaultArm</name>
<cadEngine>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
<file>seaLinkGen.groovy</file>
</cadEngine>
<kinematics>
<git>https://gist.github.com/05c9c9618618eb2624fcde829b8d670d.git</git>
@Octogonapus
Octogonapus / helloWorld.groovy
Created February 28, 2018 01:29 — forked from madhephaestus/.gitignore
BowlerStudio Hello World
// Have BowlerStudio speak messages
BowlerKernel.speak("Welcome to Bowler Studio")
@Octogonapus
Octogonapus / csgDatabase.json
Created November 30, 2017 16:23 — forked from madhephaestus/.gitignore
JavaCadExample
{
}