04_developer_documentation:dev-guide:base-objects:user-pattern
Create your own pattern
Simplify the query syntax
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)*)); }
04_developer_documentation/dev-guide/base-objects/user-pattern.txt · Last modified: 2025/01/24 12:01 by gaetan