Added Summeries
This commit is contained in:
parent
71a22df8bd
commit
8296d9b8a9
47 changed files with 812 additions and 177 deletions
|
|
@ -5,15 +5,36 @@ using SM.OGL.Mesh;
|
|||
|
||||
namespace SM2D.Object
|
||||
{
|
||||
/// <summary>
|
||||
/// Allows different type of lines.
|
||||
/// </summary>
|
||||
public enum PolyLineType
|
||||
{
|
||||
/// <summary>
|
||||
/// Those lines are not connected to each other.
|
||||
/// <para>Every two points starts a new line.</para>
|
||||
/// </summary>
|
||||
NotConnected = 1,
|
||||
/// <summary>
|
||||
/// Those lines are connected with each other, but don't connect the start and the end.
|
||||
/// </summary>
|
||||
Connected = 3,
|
||||
/// <summary>
|
||||
/// Those lines are connected and they connect start and end.
|
||||
/// </summary>
|
||||
ConnectedLoop = 2
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates new poly line.
|
||||
/// </summary>
|
||||
public class PolyLine : Polygon, ILineMesh
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new polyline by using <see cref="Vector2"/>.
|
||||
/// </summary>
|
||||
/// <param name="vertices"></param>
|
||||
/// <param name="lineType"></param>
|
||||
public PolyLine(ICollection<Vector2> vertices, PolyLineType lineType = PolyLineType.NotConnected) : base(vertices)
|
||||
{
|
||||
UVs.Active = false;
|
||||
|
|
@ -21,6 +42,11 @@ namespace SM2D.Object
|
|||
PrimitiveType = (PrimitiveType)lineType;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new polyline by using <see cref="PolygonVertex"/>.
|
||||
/// </summary>
|
||||
/// <param name="vertices"></param>
|
||||
/// <param name="lineType"></param>
|
||||
public PolyLine(ICollection<PolygonVertex> vertices, PolyLineType lineType = PolyLineType.NotConnected) : base(vertices)
|
||||
{
|
||||
UVs.Active = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue