Timeline for Why is DiscretizeGraphics missing points on my curve?
Current License: CC BY-SA 3.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 23, 2017 at 12:35 | history | edited | CommunityBot | replaced http://stackoverflow.com/ with https://stackoverflow.com/ | |
| Apr 13, 2017 at 12:55 | history | edited | CommunityBot | replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/ | |
| Dec 17, 2015 at 7:33 | history | bounty awarded | M.R. | ||
| Dec 14, 2015 at 21:10 | vote | accept | M.R. | ||
| Dec 11, 2015 at 12:12 | comment | added | Jason B. | It seems to work without Normal, thanks for the tip | |
| Dec 11, 2015 at 12:11 | history | edited | Jason B. | CC BY-SA 3.0 | added 988 characters in body |
| Dec 11, 2015 at 11:49 | comment | added | J. M.'s missing motivation | Well, after using ParametricPlot[], you could extract the Line[] object representing the curve, after a preprocessing with Normal[] to get rid of GraphicsComplex[]. | |
| Dec 11, 2015 at 11:47 | comment | added | Jason B. | Scratch that, if I apply PlotRange->All then I can combine them, but it does require and extra Show, meaning that I need to supply a Graphics to the Line object from p in order to combine them. How would I evaluate whether this was better? | |
| Dec 11, 2015 at 11:44 | comment | added | Jason B. | @J.M. then how do I combine the graphics together? If I just use Show[g1,g2] where g1 and g2 are two different ParametricPlots, with different PlotRanges, it won't show the whole thing. But if they are Line objects, Graphics[g1,g2] automatically shows everything. | |
| Dec 11, 2015 at 11:22 | comment | added | J. M.'s missing motivation | You might consider using ParametricPlot[] to adaptively sample your BSplineFunction[]. | |
| Dec 11, 2015 at 10:22 | history | edited | Jason B. | CC BY-SA 3.0 | added 875 characters in body |
| Dec 11, 2015 at 10:09 | comment | added | s.s.o | Yes, I think here is a bug in DiscretizeGraphics algorithm skips the last segment. | |
| Dec 11, 2015 at 10:04 | history | edited | Jason B. | CC BY-SA 3.0 | deleted 296 characters in body |
| Dec 11, 2015 at 9:57 | comment | added | Jason B. | ahhh, I don't know much about BSplineCurve, I grabbed that list of points from the help page. But even for a non-closed BSplineCurve, DiscretizeGraphics will omit points. Try this, gr = Graphics[{BezierCurve[{{0, 1}, {1, 1}, {2, -1}, {5, 2}}]}]; dgr = DiscretizeGraphics[gr]; Show[gr, dgr] | |
| Dec 11, 2015 at 9:54 | comment | added | s.s.o | For the first part you can use pts = {{.5, 0}, {1, 0}, {1, 1}, {.5, 1}, {0, 1}, {0, 0}}; Graphics@BSplineCurve[pts, SplineClosed -> True] so that you don,'t need to duplicate the first or last point. There is a bug I thing in DiscretizeGraphics. It forgets to ckeck if the shape is closed. And algorithm skips the last segment. | |
| Dec 11, 2015 at 9:06 | history | edited | Jason B. | CC BY-SA 3.0 | added 788 characters in body |
| Dec 11, 2015 at 8:42 | history | answered | Jason B. | CC BY-SA 3.0 |