Skip to content

Instantly share code, notes, and snippets.

View Octogonapus's full-sized avatar

:) Octogonapus

  • Leuko
  • 23:33 (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 / kotlintest.kt
Created January 16, 2020 01:33
kotlintest.kt
//Your code here
@Octogonapus
Octogonapus / kotlintest.kt
Created January 16, 2020 01:32
kotlintest.kt
//Your code here
@Octogonapus
Octogonapus / benchmark-jcsg.groovy
Created January 13, 2020 23:05
benchmark-jcsg.groovy
//Your code here
@Octogonapus
Octogonapus / DefaultDhSolver.groovy
Created December 13, 2019 03:07
InputArmBase_copy copy of InputArmBase
import java.util.ArrayList;
import com.neuronrobotics.sdk.addons.kinematics.DHChain;
import com.neuronrobotics.sdk.addons.kinematics.DHLink;
import com.neuronrobotics.sdk.addons.kinematics.DhInverseSolver;
import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR;
import com.neuronrobotics.sdk.common.Log;
import Jama.Matrix;
return new DhInverseSolver() {
@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 / carlo-demo.kts
Last active May 5, 2019 03:33
A 3dof arm demo
import arrow.core.Either
import arrow.core.right
import com.google.common.collect.ImmutableList
import com.neuronrobotics.bowlercad.cadgenerator.DefaultCadGenerator
import com.neuronrobotics.bowlerkernel.hardware.Script
import com.neuronrobotics.bowlerkernel.kinematics.base.DefaultKinematicBase
import com.neuronrobotics.bowlerkernel.kinematics.base.KinematicBase
import com.neuronrobotics.bowlerkernel.kinematics.base.baseid.SimpleKinematicBaseId
import com.neuronrobotics.bowlerkernel.kinematics.closedloop.JointAngleController
import com.neuronrobotics.bowlerkernel.kinematics.closedloop.NoopBodyController