Skip to content

issue in fixTJunctions #61

Description

@bebbi

See also #60 . This issue here is about fixing fixTJunctions..
While I think #60 is more important, here is another example that trigger either assertionFailed or sidemapIsEmpty depending on very minor changes in numbers. Possibly helps narrow down the issue.

    function main() {
        // this r produces assertion failed (unless H triggers sidemapisempty)
        var r = 2.306667;
        // this r produces sidemapisempty
        // var r = 2.30667;

        // this H produces sidemapisempty
        var H = 0.69333;
        // this H produces assertion failed
        // var H = 0.693333;

        var rotPath = CSG.Path2D.arc({
            center: [8.8, H],
            radius: r,
            startangle: 0,
            endangle: 90,
            resolution: 15 * r
        });
        rotPath = rotPath.appendPoints([[0, 3], [0, 0]]);
        var cag = CAG.fromPoints(rotPath.points);
        var csg_fail = cag.rotateExtrude({
            angle: 360,
            resolution: 50
        });
        var polys = csg_fail.polygons.filter(function(p){return p.getArea() > 1e-10});
        var csg_pass = CSG.fromPolygons(polys);
        return csg_fail; // vs csg_pass that works
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions