DesignEngrLab / MIConvexHull

A .Net fast convex hull library for 2, 3, and higher dimensions.
http://designengrlab.github.io/MIConvexHull/
MIT License
341 stars 60 forks source link

New requirement on Create2D(IVertex2D) #33

Open mc0re opened 5 years ago

mc0re commented 5 years ago

Why is there a "new" requirement? IVertex2D only has read-only properties, so a constructor with parameters is necessary, whilst a parameterless constructor (the result of "new" requirement) is pointless, unless you do some hefty reflection tricks...

micampbell commented 5 years ago

I'm sorry I'm not understanding. IVertex2D is an interface. This is the extent of the code:


    public interface IVertex2D
    {
        /// <summary>
        /// Gets the x.
        /// </summary>
        /// <value>The x.</value>
        double X { get; }

        /// <summary>
        /// Gets the y.
        /// </summary>
        /// <value>The y.</value>
        double Y { get; }
    }
debashis66 commented 3 years ago

Hi, is it possible to use Create2D on coplanar points which do not lie on Z=0 plane ? Can it be used to calculate 2D hull for points on arbitrary oriented planes or plane normal should always be 0,0,1