We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
These two should be equal, but internally when sampled at (V2 (-1) 0) the sign of the SDF differs yet they both get rendered correctly.
(V2 (-1) 0)
let funPoly = polygon [V2 0 0, V2 0 (-0.1), V2 (-2) 0, V2 0 (-1)] rotFunPoly = rotate (2*pi) funPoly
> getImplicit funPoly (V2 (-1) 0) -4.993761694389224e-2 > getBox funPoly (V2 (-2.0) (-1.0),V2 0.0 0.0)
vs
> getImplicit rotFunPoly (V2 (-1) 0)) 4.9937616943891996e-2 > getBox rotFunPoly (V2 (-2.0000000000000004) (-1.0),V2 0.0 4.898587196589413e-16)
This has something to do with isIn
isIn
ImplicitCAD/Graphics/Implicit/ObjectUtil/GetImplicit2.hs
Line 60 in 874cb76
Lines 49 to 56 in 874cb76
and it only seems to affect small polygons + rotation. If the isIn mechanism is dropped, they don't get rendered at all.
The text was updated successfully, but these errors were encountered:
Add hack that prevents generation of small polygons
5c062d2
See Haskell-Things#449
be1ee7a adds golden test (since we don't have any 2D ones). The two renders differ in one pixel and 9 bytes..
Sorry, something went wrong.
1e7a3b6
d32dc4c
732e809
No branches or pull requests
These two should be equal, but internally when sampled at
(V2 (-1) 0)
the sign of the SDF differs yet they both get rendered correctly.
vs
This has something to do with
isIn
ImplicitCAD/Graphics/Implicit/ObjectUtil/GetImplicit2.hs
Line 60 in 874cb76
and
ImplicitCAD/Graphics/Implicit/ObjectUtil/GetImplicit2.hs
Lines 49 to 56 in 874cb76
and it only seems to affect small polygons + rotation. If the
isIn
mechanism is dropped, they don't get rendered at all.The text was updated successfully, but these errors were encountered: