Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builder.buildDelaunay collapse #16

Open
ghost opened this issue Mar 2, 2019 · 1 comment
Open

Builder.buildDelaunay collapse #16

ghost opened this issue Mar 2, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 2, 2019

When i create Shape by Builder.buildDelaunay.......collapse

Code:
List data = new List();
data.Add(new Coord3d(-4.000000, -4.000000, -0.586176));
data.Add(new Coord3d(-2.000000, -4.000000, -0.971278));
data.Add(new Coord3d(0.000000, -4.000000, -0.756803));
data.Add(new Coord3d(2.000000, -4.000000, -0.971278));
data.Add(new Coord3d(-4.000000, -2.000000, -0.971278));
data.Add(new Coord3d(-2.000000, -2.000000, 0.308072));
data.Add(new Coord3d(0.000000, -2.000000, 0.909297));
data.Add(new Coord3d(2.000000, -2.000000, 0.308072));
data.Add(new Coord3d(-4.000000, 0.000000, -0.756803));
data.Add(new Coord3d(-2.000000, 0.000000, 0.909297));
data.Add(new Coord3d(0.000000, 0.000000, 0.000000));
data.Add(new Coord3d(2.000000, 0.000000, 0.909297));
data.Add(new Coord3d(-4.000000, 2.000000, -0.971278));
data.Add(new Coord3d(-2.000000, 2.000000, 0.308072));
data.Add(new Coord3d(0.000000, 2.000000, 0.909297));
data.Add(new Coord3d(2.000000, 2.000000, 0.308072));
Shape surface = Builder.buildDelaunay(data);

I Trying to modify Triangle_dt.cs:
public bool circumcircle_contains(Point_dt p)
{
if (null == _circum) return false;
return _circum.Radius > _circum.Center.distance2(p);
}

It work

@benoit74
Copy link
Owner

benoit74 commented Mar 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant