How to remove the white aperture in the filled area?

cooooldog shared this question 5 years ago
Answered

I am trying to fill closed areas with "spline" as boundaries.

eb5238e0819a91d3825573c128ff2394

problem I have is mainly: there are often white aperture(s) left, some can be removed by adjust the size of the window and some cannot.


Attached is one example which cannot be easily removed if I don't change coordinates of any spline knots.


https://ggbm.at/569821


How to solve it? I want to have the closed area filled with the same color without aperture. For example:

eb5238e0819a91d3825573c128ff2394

Comments (17)

photo
1

Hi


for spline-line you can change only the Opacity (no locus, no segment for close)


Raymond

https://ggbm.at/569825

photo
1

:smiley_cat: thank you!

this solves the problem and is a simpler implementation


Hi


for spline-line you can change only the Opacity (no locus, no segment for close)


Raymond

photo
1

A further problem is:


When such spline is Exported into PSTricks code for graph creation in LaTeX, the "segment" joining the head and tail of the spline disappears; and the filling effect is not the expected style:

b37978e8d0c3c8ed3281669a9998cf75


Hi


for spline-line you can change only the Opacity (no locus, no segment for close)


Raymond

photo
1

Currently , the export of the spline does not support filling.

There not will be a solution in a short time

P.S.

spline[A,B,C,D,A] creates a closed spline

photo
1

Thank you!


An alternative way for spline to support filling is to use Locus, as has been tried in my original post:


such method usually works fine except that there is sometimes aperture in the filling :smiley_cat:


Currently , the export of the spline does not support filling.

There not will be a solution in a short time

P.S.

spline[A,B,C,D,A] creates a closed spline

photo
1

Hi,


Try with this (locus) version.

If is it not correct, maybe help Key F9.


Raymond

https://ggbm.at/569829

photo
1

Thank you! This solves it!

:smiley_cat:


Hi,


Try with this (locus) version.

If is it not correct, maybe help Key F9.


Raymond

photo
1

One more question is , where can I find details of the macro LocusPntAdjust?


and How to create similar new macros?


Hi,


Try with this (locus) version.

If is it not correct, maybe help Key F9.


Raymond

photo
1

hello

perhaps you like this another method

new c, list2, F do it

saludos

(based in your works)

https://ggbm.at/569839

photo
1

this is not a solution to my problem;

because you changed almost all the spline knots' coordinates.

Did you noticed the desired example with no aperture? it has no aperture because I changed some knots' coordinates. :flushed:

thanks


hello

perhaps you like this another method

new c, list2, F do it

saludos

(based in your works)

photo
1

It seems what solves the problem is the definition of point F:


    F= point[list2,0]


has no aperture in your case


    F=point[list2]


got my problem :flushed:

:smiley_cat:

hello

perhaps you like this another method

new c, list2, F do it

saludos

(based in your works)

photo
1

It seems the path parameter in "Point[ <Object>, <Parameter> ]"

( "Returns a point on the geometric object with given path parameter. ")

affects the filling effect significantly.


I tried to change this parameter between 0 and 1, then the aperture changes this way:

7f495e2771170615c9cebb8f740699fc


But why ?


hello

perhaps you like this another method

new c, list2, F do it

saludos

(based in your works)

photo
1

hello

i think it is an effect of program.

it seems to me that the program creates a polygon with many points (points of path and point defining the locus) and the effect is like in this polygon

perhaps the programer must be identify 'point defining locus' with the first point of locus ever. i am not sure

saludos

https://ggbm.at/569843

photo
1

In next release the export of spline works with pstricks and pgf/tikz

Giuliano

photo
1

thank you! this explains the effects observed.


Another phenomenon is : the aperture also changes when the size of the Geogebra graphics window changes...


hello

i think it is an effect of program.

it seems to me that the program creates a polygon with many points (points of path and point defining the locus) and the effect is like in this polygon

perhaps the programer must be identify 'point defining locus' with the first point of locus ever. i am not sure

saludos

photo
1

Good news! :smiley_cat:


Are you a developer of the Geogebra team?


In next release the export of spline works with pstricks and pgf/tikz

Giuliano

photo
1

@pinguino @rami @mathmagic

Thank you all!


Now in the latest 5.0.57 version, it becomes easier! :smiley_cat:

© 2020 International GeoGebra Institute