Merge branch 'fix_csg2d' into 'master'

Fix csg2d

See merge request jschoeberl/netgen!374
This commit is contained in:
Matthias Hochsteger 2021-03-24 11:35:28 +00:00
commit 57a4d03d23

View File

@ -804,8 +804,8 @@ void ComputeIntersections(Edge edgeP , Loop & l2)
{
for (Edge edgeQ : l2.Edges(SOURCE))
{
double alpha = -1;
double beta = -1;
double alpha = -EPSILON;
double beta = -EPSILON;
IntersectionType i = intersect(edgeP, edgeQ, alpha, beta);
AddIntersectionPoint(edgeP, edgeQ, i, alpha, beta);
if(i==X_INTERSECTION && (edgeP.v0->spline || edgeQ.v0->spline))
@ -2216,6 +2216,8 @@ shared_ptr<netgen::SplineGeometry2d> CSG2d :: GenerateSplineGeometry()
seg->reffak = 1;
seg->copyfrom = -1;
seg->hmax = ls.maxh;
seg->hpref_left = 0.;
seg->hpref_right = 0.;
geo->AppendSegment(seg);
}
t_segments.Stop();