Revision 45b08c37
Added by Leszek Koltunski about 5 years ago
| src/main/java/org/distorted/library/mesh/MeshTriangle.java | ||
|---|---|---|
| 21 | 21 |
|
| 22 | 22 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 23 | 23 |
/** |
| 24 |
* Create a Mesh which approximates an equilateral triangle.
|
|
| 24 |
* Create a Mesh which approximates a triangle with vertices at (-0.5,-0.5),(+0.5,-0.5),(0.0,0.5)
|
|
| 25 | 25 |
*/ |
| 26 | 26 |
public class MeshTriangle extends MeshBase |
| 27 | 27 |
{
|
| ... | ... | |
| 96 | 96 |
// PUBLIC API |
| 97 | 97 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 98 | 98 |
/** |
| 99 |
* Creates the underlying grid of vertices with the usual attribs which approximates an equilateral
|
|
| 100 |
* triangle.
|
|
| 99 |
* Creates the underlying grid of vertices with the usual attribs which approximates a triangle
|
|
| 100 |
* with vertices at (-0.5,-0.5),(+0.5,-0.5),(0.0,0.5)
|
|
| 101 | 101 |
* |
| 102 | 102 |
* @param level Specifies the level of slicing. Valid values: level ≥ 1 |
| 103 | 103 |
*/ |
Also available in: Unified diff
Minor.