Skip to content

outline not work with circle #609

Description

@creatxrgithub

outline not work with circle

to calculate circle's outline will get only a circle stroke. and anything inside the circle will lose.

maybe, it cannot calculate a closed stroke's outline?

let model = {
    "models": {},
    "paths": {
        "p0": {
            "type": "line",
            "origin": [
                32,
                16
            ],
            "end": [
                32,
                48
            ]
        },
        "p1": {
            "type": "line",
            "origin": [
                48,
                32
            ],
            "end": [
                16,
                32
            ]
        },
        "p2": {
            "type": "circle",
            "origin": [
                50,
                50
            ],
            "radius": 45
        }
    }
};

model = makerjs.model.outline(model, 5);  //will get only circle stroke

remove the "p2", it will get a outline of the "p1"+"p2".

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions