dev-guide:base-objects:user-pattern
This is an old revision of the document!
Create your own pattern
module A(float len, int i) extends Sphere(0.1) { {setShader(GREEN);} public static class Patternx extends de.grogra.xl.impl.base.FieldListPattern { public Patternx () { super (A.$TYPE,new A().getUserField(0)); } public static void signature (@In @Out A n, float a); } } protected void init () [ Axiom ==> A(2, 1) A(3, 1); ] public void toto(){ println((*A(3)*)); }
dev-guide/base-objects/user-pattern.1736356723.txt.gz · Last modified: 2025/01/08 18:18 by gaetan