You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe related to #160 since my triangle does have points that are very close to each other. One thing I did note in the gist above is that using DrawMode::Stroke does the expected thing and draws a line. So it seems to me that the geometry itself isn't broken and it's something to do with the material generated for a filled shape, but I'm not sure.
The text was updated successfully, but these errors were encountered:
Quick update; I don't think this is related to the points being close together. I tried a quick experiment with my gist code above where I multiplied each point by 50.0 and then scaled by the reciprocal using the Transform and I'm still seeing only the stroke render.
I'm closing this issue because the problem ended up being the way I was creating my path. For anyone who finds this in the future, you can't call move_to between each vertex as this will close the in-progress path, so the general pattern should be:
builder.move_to(start);for endpoint in endpoints.iter(){
builder.line_to(endpoint.clone());}
builder.close();// optional, if you want to connect the start to the end
What I Did
Created a triangle using
PathBuilder
and added a bundle from the resultingPath
usingGeometryBuilder
andDrawMode::Fill
.Expected Outcome
A triangle is drawn.
Actual Outcome
Nothing appears.
Steps to Reproduce
Gist here: https://gist.github.com/SteveXCIV/99515e05d68694155b3ea9d2e4af7c49
Additional Information
Maybe related to #160 since my triangle does have points that are very close to each other. One thing I did note in the gist above is that using
DrawMode::Stroke
does the expected thing and draws a line. So it seems to me that the geometry itself isn't broken and it's something to do with the material generated for a filled shape, but I'm not sure.The text was updated successfully, but these errors were encountered: