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
package eu.mihosoft.vrl.user; | |
import eu.mihosoft.jcsg.*; | |
import eu.mihosoft.jcsg.ext.mesh.MeshTools; | |
@ComponentInfo(name="MeshOptimizer", category="Custom") | |
public class MeshOptimizer implements java.io.Serializable { | |
private static final long serialVersionUID=1L; | |
public CSG optimize( | |
CSG csg, |
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
/* | |
Truncated octahedron. | |
*/ | |
module truncocta() { | |
// octahedron based on code by Willliam A Adams | |
octapoints = [ | |
[+1, 0, 0], // + x axis | |
[-1, 0, 0], // - x axis | |
[0, +1, 0], // + y axis |
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
grammar org.xtext.example.mydsl.take1.MyDsl with org.eclipse.xtext.common.Terminals | |
generate myDsl "http://www.xtext.org/example/mydsl/take1/MyDsl" | |
Json: value=Val; | |
Obj: | |
'{' | |
pairs+=Pair (',' pairs+=Pair)* |
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
/** | |
* Script to perform an Advection-Diffusion Problem | |
* | |
* Author: M. Hoffer, A. Vogel | |
*/ | |
import edu.gcsc.vrl.ug.api.I_ApproximationSpace; | |
import edu.gcsc.vrl.ug.api.I_UserNumber; | |
import edu.gcsc.vrl.ug.api.I_UserVector; | |
import edu.gcsc.vrl.ug.api.*; |
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
/** | |
* Script to perform a Kinetic Problem | |
* | |
* Author: M. Hoffer, A. Vogel | |
*/ | |
import eu.mihosoft.vrl.annotation.*; | |
import eu.mihosoft.vrl.types.*; | |
import edu.gcsc.vrl.ug.api.I_ApproximationSpace; | |
import edu.gcsc.vrl.ug.api.I_UserNumber; | |
import edu.gcsc.vrl.ug.api.F_Integral; |
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
import edu.gcsc.vrl.ug.api.*; | |
import eu.mihosoft.vrl.annotation.*; | |
import eu.mihosoft.vrl.math.Trajectory; | |
import eu.mihosoft.vrl.types.CanvasRequest; | |
import java.io.File; | |
import java.io.FileFilter; | |
/** | |
* Script to perform a Kinetic Problem. |
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
/** | |
* Script to perform an Advection-Diffusion Problem | |
* | |
* Author: M. Hoffer, A. Vogel | |
*/ | |
import eu.mihosoft.vrl.annotation.*; | |
import edu.gcsc.vrl.ug.api.F_GlobalDomainRefiner; | |
import edu.gcsc.vrl.ug.api.I_IRefiner; | |
import edu.gcsc.vrl.ug.api.I_Domain; |
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
package eu.mihosoft.vrl.user; | |
import static eu.mihosoft.vvecmath.Transform.unity; | |
import eu.mihosoft.vvecmath.Vector3d as Vec3d; | |
import eu.mihosoft.vcsg.CSG; | |
/** | |
* @author Michael Hoffer <info@michaelhoffer.de> | |
*/ | |
@ComponentInfo(name="CopyCSG", category="Custom", description="Aligns copies of csg objects in a grid") |
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
package eu.mihosoft.vrl.user; | |
/** | |
* A simple 2df geometry & data plotter for VRL-Studio. | |
* | |
* @author Michael Hoffer <info@michaelhoffer.de> | |
*/ | |
@ComponentInfo(name="File2DPlotter", category="Custom") | |
class File2DPlotter implements Serializable, GlobalBackgroundPainter { | |
private static final long serialVersionUID=1; |
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
package eu.mihosoft.vrl.user; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.stream.Collectors; | |
/** | |
* A simple 2d file reader for VRL-Studio. | |
* | |
* # File format: |