Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Conversation

@yakir12
Copy link
Member

@yakir12 yakir12 commented Mar 26, 2020

No description provided.

ellipse = Ellipse(Point2f0(0), Vec2f0(1))
points = decompose(Point2f0, ellipse, 20)
@test length(points) == 20
# TODO: currently, no ellipse meshes
Copy link
Member Author

@yakir12 yakir12 Mar 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonDanisch I dunno how to implement src/primitives.jl#L28 for an Ellipse...

Copy link

@asinghvi17 asinghvi17 Mar 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to do the same thing, since the triangulation is the same either way.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried adding

function (::Type{T})(c::Ellipse, n = 32) where T <: AbstractMesh

to primitives.jl but I don't understand why it isn't working. Honestly, my understanding here is really low, I'm basically copy pasting things that were implemented specifically for HyperSphere and adjusting them to an ellipse (so 2 radii, not one). Stumped, do you know what's missing?

@yakir12 yakir12 mentioned this pull request Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants