How to fill overlapping areas in a polygon?

I am creating a polygon animation from lotus shapes. The lotus shapes are crossing each other in circles, so sometimes the resulting polygon is overlapping itself. This causes the overlapped areas to not get painted at all. Look at this screenshot of the polygon to see what I mean:
http://www.astralvisuals.com/polyLotus.jpg
Here you can see that there are small black areas, where the lotus shapes intersect. It should be blue instead here. What can I do to get these overlapping areas painted?
It says on the fillPolygon description:
"The area inside the polygon is defined using an even-odd fill rule". Is it this rule that causes the overlapping areas to not get painted?

fillColor works the same for paths or for text,
to get to the text fillColor property use
textRef.textRange.characterAttributes.fillColor
Creating and applying a gradient, from the Scripting Reference, page 63
// Creates a new gradient in current document then
// applies the gradient to the frontmost path item
if ( app.documents.length > 0 ) {
// Create a color for both ends of the gradient
var startColor = new RGBColor();
var endColor = new RGBColor();
startColor.red = 0;
startColor.green = 100;
startColor.blue = 255;
endColor.red = 220;
endColor.green = 0;
endColor.blue = 100;
// Create a new gradient
// A new gradient always has 2 stops
var newGradient = app.activeDocument.gradients.add();
newGradient.name = "NewGradient";
newGradient.type = GradientType.LINEAR;
// Modify the first gradient stop
newGradient.gradientStops[0].rampPoint = 30;
newGradient.gradientStops[0].midPoint = 60;
newGradient.gradientStops[0].color = startColor;
// Modify the last gradient stop
newGradient.gradientStops[1].rampPoint = 80;
newGradient.gradientStops[1].color = endColor;
// construct an Illustrator.GradientColor object referring to the
// newly created gradient
var colorOfGradient = new GradientColor();
colorOfGradient.gradient = newGradient;
// get first path item, apply new gradient as its fill
var topPath = app.activeDocument.pathItems[0];
topPath.filled = true;
topPath.fillColor = colorOfGradient;

Similar Messages

  • Any suggestons on how to remove exclusion areas from a polygon?

    any suggestons on how to remove exclusion areas from a polygon?

    Hi,
    SDO_UTILS.EXTRACT
    [http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14255/sdo_util.htm#BABBGFIB]
    Bartek

  • How to get the area of a polygon

    Dears,
    I want to use distance tool to get the area of a drawn polygon, how to do so using mapviewer javascript API version 2 and/or version 1.
    Does the mapviewer javascript API version 2 works with JSP/ASP or it is just for HTML5?
    Many thanks in advance

    I suggest to take a look at examples F01 and F06 ( Oracle Maps Demo ).
    The answer to your second question is yes. As oracle maps api is a client side (javascript) api you can use it with any server side programming languages like ASP or JSP.

  • How to fill Functional Area on Appropriation request

    Hi guys!
    We faced a problem to fill standart field IMAK-FKBER (functional area) on Appropriation request. Despite the fact it exists in standart table, there are no standart ways to fill that field through IMA1N or IMA11.
    However we assigned FA NG000001 to a Cost center 10000001 and defined that cost center in AR, but still after saving chnages no value changed in IMAK-FKBER?
    Does anyone know which organisational units (company code, business area, functional location) effect on the value of functional area in IMAK table? Or is there other way to define FA for appropriation request?
    Any help appreciated.

    Hi Kir Zu,
    I suspect this is an obsolete field, since it makes little sense to be derived from anything at all, while at the same time it is not on the screen.
    SAP has a number of obsolete fields even in Customizing activities that allow an entry, but ignored by standard programs.
    The best way to confirm it would be to look through ABAP code for AR data save.  You can try to populate it with a user exit, but it also makes little sense since the field is not visible.
    Also look at the function that creates WBS-element/Order from IMA11, it is passing the master data values to respective WBS/Order and your ABAPer can see if Functional Area is passed or not.
    Functional Area makes sense only for Account Assignment Objects used in Financial Accounting, while AR is not an account assignment object.
    Regards,
    Paulo

  • How to fill bean area with values from database

    i have a bean area in form which act as acombobox autocomplete , i want to fill it with dynamic values from database , any help will be appreciated.
    http://forms.pjc.bean.over-blog.com/article-16369664.html "this is the example i'm working on"
    Best Regards.

    An example with the EMP table:
    DECLARE
      cursor cur is select empno,ename from emp;
    BEGIN
      -- initialise the ComboBox twin values --
      for c in cur loop
       if c.empno is not null then
        Set_Custom_Property('BL.BEAN',1,'ADD_TWIN',c.empno||','||c.ename);
       else
        Set_Custom_Property('BL.BEAN',1,'ADD_TWIN_NULL',c.empno||','||c.ename);
       end if ;
      end loop;
      Set_Custom_Property('BL.BEAN',1,'ADD_TWIN','[END_DATA]');
      Set_Custom_Property('BL.BEAN',1,'SET_ALIGNMENT','right');
    END;Francois

  • How to remove and fill in areas of a picture

    I am using the 30 day trial of Photoshop and trying to use online Help to learn the "how to's" BUT I'm finding it dificult to always follow the videos and explanations.
    I want to remove unwanted areas of a photo and then fill in those areas to match the surrounding image.
    I have figured out how to use the SELECT tool to cut out the unwanted areas BUT I can't figure out how to fill in the vacant areas.

    Ex IBM er work there for 40 years myself. Even if you worked with computers for years. Your not going to learn Photoshop in 30 days.  It will take longer then 30 days for you to become comfortable using Photoshop and much longer to become proficient with it.  Photoshop is an on going learning exercise the more you use it the stronger you become.
    Many of the video tutorials are done by users that are proficient using Photoshop and they use images that tools like content aware distortion will work well on if you know how to use the tools well. Without that knowledge you will have a hard time using the tools.  It also easy to miss point watching a video. Watch them more then once.  You also need knowledge of masking and other thing they have pre done for their videos.  They make it look easy its not that it hard its most beginners lack Photoshop knowledge
    Before any of the content aware stuff  I did this before and after images full size link http://www.mouseprints.net/BeforeAndAfter/AirplaneModFull.jpgopen in new window to see full size.
    Before
    After

  • How do I select a black and white sketch from a white background and keep the filled in area of the sketch?  I want to copy it to a colored background. I amusing elements 12.

    How do I select a black and white sketch from a white background and keep the filled in area of the sketch?  I want to copy it to a colored background. I am using elements 12.

    oesrowstreasurer
    Please clarify your "Elements 12". Is that as in Photoshop Elements 12 (photo editor) or Premiere Elements 12 (video editor). And, on what computer operating system is the program running?
    Your question is pointing to Photoshop Elements 12 and that you have posted in the wrong forum. If this is a Photoshop Elements 12 question as I believe it is, please post your thread in the Adobe Premiere Elements Forum using the following link provided for your convenience
    https://forums.adobe.com/community/photoshop_elements
    The alternative is to wait for a moderator to see your thread here and move it from here to the Adobe Photoshop Elements Forum..
    We will be watching for a confirmation on what program you are using.
    ATR

  • In trying to edit a track - I want to "Delete and Move" the track to automatically fill the area that I deleted - However, after selecting a section to delete - the "Delete and Move" option is grayed out. How do I fix this?

    In trying to edit a track - I want to "Delete and Move" the track to automatically fill the area that I deleted - However, after selecting a section to delete - the "Delete and Move" option is grayed out. How do I fix this?

    Thank you for your attempt to help me. I appreciate that.
    I think I figured out how to fix it-
    I found that if I only delete a small amount at the beginning and at the end of the section that I want to remove - and then highlight that section - Then (and only then) does the "Delete and Move" function work to remove the unwanted section and automatically close the gap between the surrounding sections. I was trying to select a whole section and could only delete it - and then manually move it.
    Problem solved.

  • How to fill empty business area in posted documents?

    Hi SAP Team,
    My Client need to fill the field "business area" for documents already posted. However, today all posted documents, have a rule + validation or substitution for this field.- fill business area to be filled in. For year 2013, my client want to re-assign business area at balance sheet accounts but the problem is how to that at customers, vendors account that are reconciliation accounts. Do you have any sugestion?
    For balance accounts, for eg:, if my total in a gl bank account is in debit (no business area at this gl account level), my client idea is to credit that bank account without business area and debit it again but filling the business area. For Customers/Vendors, is not that easy because that gl account does not allow directed posting.
    Do you have suggestion to handle this?
    Thanks a lot,
    Kind regards
    Antónia Farias

    For vendor / customer postings you have to create reconiliation account wise dummy sub ledgers.
    E.g. 1.You have 3 recon. a/c's for customers then you cretae 3 dummy customer codes.
           2. Post a consolidated entry using this dummy accounts(one line item with B.A and the second
               line ietm without B.A)
           3. So at any point of time these subledgers should have zero balance.
           4.  Please block these sub-ledgers once your postings have been finished.
    Rgds
    MBN.

  • How to calculate the area of polygon in WPF Bing map?

    Hi everyone, I have a polygon on Bing Map WPF and want to calculate its area in square feet. I used a list contained all points of the polygon to calculate using this formula: area += (point.X * nextPoint.Y - point.Y * nextPoint.X)/2. However, the result
    is too large. For example, I calculated a rectangle of 57ft and 80ft and the result was 58000. It's supposed to be 4560. Do I need to convert points to feet? Could you help me to solve this? Thanks a lot.
    Here is my code:
    double area = 0;
    double area2 = 0;
    for (int numPoint = 0; numPoint < inputPoint.Count - 1; numPoint++)
    System.Windows.Point point = inputPoint[numPoint];
    System.Windows.Point nextPoint = inputPoint[numPoint + 1];
    area2 += point.X * nextPoint.Y - point.Y * nextPoint.X;
    area = area2 / 2;

    Calculating the area of a polygon on a map is very complicated as the world is a sphere and you are actually trying to calculate the area of a polygon stretched on the surface of a sphere. Since you are using WPF I'd suggest to make things easy and make
    use of the spatial library available in SQL server. All the spatial functionalities in SQL server are available as a dll which you can use in your WPF application. You can easily use this library to calculate the area of a polygon accurately and do a lot of
    other really powerful things as well. To start off with, if you have SQL instelled you can find the SQL Spatial Library (Microsoft.SqlServer.Types) located in the C:\Program Files (x86)\Microsoft SQL Server\110\Shared directory. If you
    don't have SQL Server installed you can download the express version for free from here:
    http://www.microsoft.com/en-us/sqlserver/editions/2012-editions/express.aspx
    Take a look at this hands on lab for information using SQL spatial tools in .NET:
    http://view.officeapps.live.com/op/view.aspx?src=http%3A%2F%2Fecn.channel9.msdn.com%2Fo9%2Flearn%2FSQL2008R2TrainingKit%2FLabs%2FUsingSpatialDataInManagedCode%2FLab.docx
    Once you have this library you can create an SQL Geography object from your polygon. Once this is done you can then use the STArea method to calculate the area of the polygon. There is a ton of other spatial methods available as well which you can use to
    create a really powerful mapping application.
    http://rbrundritt.wordpress.com

  • How to add fields to already loaded cube or dso and how to fill records in

    how to add fields to already loaded cube or dso and how to fill  it.can any one tell me the critical issues in data loading process..?

    This is sensitive task with regards to large volumes of data in infoproviders.
    The issue is to reload of data in case of adjusted structures of infoproviders.
    Indeed there are some tricks. See following:
    http://weblogs.sdn.sap.com/cs/blank/view/wlg/19300
    https://service.sap.com/sap/support/notes/1287382

  • How do I overlap photos in my books

    how do I overlap photos in my books

    rockyfromfort lauderdale wrote:
    how do I overlap photos in my books
    Not sure what your question is
    If you want to do a two page layout then under the page design choose the spread layout
    If you want to move photos around on a page so they are in different positions select the photo and depress teh command key and press an arrow to move it a bit - add the shift key to more it a bit more
    LN

  • How to fill Long Text in Accounting document in the item level.

    Hi,
    I need to fill Long Text field in item level of accounting document from the header texts from Billing header(say billing instructions)
    I checked the user exit EXIT_SAPLV60B_008 but it didnt worked in my case. I have read the billing instructions in the Billing header using FM READ_TEXT but I am not able to save this text  using FM SAVE_TEXT because  for the field Long Text  the parameter TDNAME is a concatenation of BUKRS(COmpany code) BELNR(Accounting doc. no.)  GHAJR(fiscal year)  BUZEI(line item) .
    But I am not able to capture this accounting doc. number in the mentioned user exit instead I am getting Sales Invoice number and hence not able to give TDNAME parameter for FM save_text.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • How to fill the whole screen of my iMac with the photos included in an iDVD project. (iDVD v. 7.1.2)

    How to fill the whole screen of my iMac with the photos I included in an iDVD project. (iDVD v. 7.1.2). I mean, during playing the burned dvd.
    When I do "Enter Full Screen", the slide show fills the screen but the photo itself remains in the middle with a wide black border filling the rest.
    Any cure for this ?

    Hi
    In iDVD Preferences - Turn off - TV-Safe area - and the Photos will fill the full area with just letterboxing or pillars as max.
    Then "Save as a DiskImage" and test this and see if this plays better - before burning DVDs that's not as You want them.
    Bengt W

  • How to fill the master data in ecc

    Hi,
             0product_attr having zero records i ecc,how to fill the master data in ecc can you pls provide me the setps?
    Regrads,
    devi.

    Hi Devi,
    Loading data is ECC is not the part of BI Activities. Contact your functional consultant to load data. 
    BDC and LSMW both are used for loading data into SAP system.
    Or ask even directly they can create in ECC.  If it is for your testing purpose, it is better to ask them to create master in source system .
    Thanks
    BVR

Maybe you are looking for