tutorials:leaf-triangulation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tutorials:leaf-triangulation [2024/12/09 21:39] – added leaf3d stuff MH | tutorials:leaf-triangulation [2024/12/09 21:51] (current) – changed some minors MH | ||
---|---|---|---|
Line 65: | Line 65: | ||
</ | </ | ||
- | + | Coming back to the // | |
- | The //Library// function //getMesh// takes a // | + | |
<code java> | <code java> | ||
Line 137: | Line 136: | ||
}); | }); | ||
- | const PolygonMesh polygonMesh = new PolygonMesh(); | + | static MeshNode LeafletMesh; |
static { | static { | ||
- | | + | |
- | for(int i = 0; i< | + | |
- | // set a list of the indices of the used list of vertices | + | |
- | // normally = {0, | + | |
- | polygonMesh.setIndexData(new IntList(tmp)); | + | |
- | // set the list of vertices | + | |
- | polygonMesh.setVertexData(vertexDataLeaflet); | + | |
} | } | ||
protected void init() [ | protected void init() [ | ||
- | Axiom ==> Scale(0.07, 0.07, 0.01) | + | Axiom ==> Scale(0.07, 0.07, 0.01) LeafletMesh.(setShader(GREEN)); |
] | ] | ||
</ | </ | ||
Line 176: | Line 169: | ||
<code java> | <code java> | ||
protected void init() [ | protected void init() [ | ||
- | Axiom ==> | + | Axiom ==> |
- | | + | for(int i=0; i< |
- | | + | [ Null(i*0.3, |
- | [ Null(i*0.3, | + | ) |
- | ) | + | |
- | ] | + | |
] | ] | ||
</ | </ | ||
Line 187: | Line 178: | ||
The predefined 3D leaf shapes will look as shown below: | The predefined 3D leaf shapes will look as shown below: | ||
- | {{ : | + | {{ : |
tutorials/leaf-triangulation.1733776778.txt.gz · Last modified: 2024/12/09 21:39 by MH