New rendering code check-in
git-svn-id: https://triangle.svn.codeplex.com/svn@75033 0e2699bc-83d4-4a8f-98e7-55e24ab8c7a5
This commit is contained in:
@@ -42,7 +42,7 @@ namespace TriangleNet.Meshing.Algorithm
|
||||
if (Log.Verbose)
|
||||
{
|
||||
Log.Instance.Warning("A duplicate vertex appeared and was ignored.",
|
||||
"Incremental.IncrementalDelaunay()");
|
||||
"Incremental.Triangulate()");
|
||||
}
|
||||
v.type = VertexType.UndeadVertex;
|
||||
mesh.undeads++;
|
||||
|
||||
@@ -78,6 +78,19 @@ namespace TriangleNet.Meshing
|
||||
return mesh;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Generates a structured mesh with bounds (0, 0, width, height).
|
||||
/// </summary>
|
||||
/// <param name="width">Width of the mesh (must be > 0).</param>
|
||||
/// <param name="height">Height of the mesh (must be > 0).</param>
|
||||
/// <param name="nx">Number of segments in x direction.</param>
|
||||
/// <param name="ny">Number of segments in y direction.</param>
|
||||
/// <returns>Mesh</returns>
|
||||
public IMesh StructurdMesh(double width, double height, int nx, int ny)
|
||||
{
|
||||
return StructurdMesh(new Rectangle(0.0, 0.0, width, height), nx, ny);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Generates a structured mesh.
|
||||
/// </summary>
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace TriangleNet.Meshing
|
||||
|
||||
Rectangle Bounds { get; }
|
||||
|
||||
void Renumber();
|
||||
void Refine(QualityOptions quality);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user