Join 2 lines with Arc

Anyone could give me a example to join 3 lines with Arc?
I´ve already tried to join using QuadCurveTo, but my lines were wrong.
Thanks,
André Rezende

Oh, so it is much simpler than I thought... :)
Here is a quick code to get you inspired:
var scene: Scene;
Stage
    title: "Forum Test"
    scene: scene = Scene
        width: 1000
        height: 100
        content:
            Button
                text: "Show wave"
                action: function (): Void
                    insert MakeWave() into scene.content;
function MakeWave(): Path
    println("Making a wave");
    var wave = Path { stroke: Color.LIGHTBLUE, strokeWidth: 8 }
    def radius = scene.height / 5;
    def high = radius;
    def low = scene.height - high;
    def len = (scene.height - 2 * radius) * Math.sqrt(2);
    def arcLen = 2 * radius / Math.sqrt(2);
    var xPos = radius;
    var yPos = low;
    insert MoveTo { x: xPos, y: yPos } into wave.elements;
    println("{xPos} - {len} - {scene.width - len - arcLen}");
    while (xPos < scene.width - len - arcLen)
        xPos += len;
        yPos = if (yPos == low) high else low;
        print("{yPos} - {xPos} ... ");
        insert
                LineTo { x: xPos, y: yPos }
                ArcTo
                    x: xPos + arcLen
                    y: yPos
                    radiusX: radius
                    radiusY: radius
                    sweepFlag: yPos == high
        } into wave.elements;
        xPos += arcLen;
        println(xPos);
    return wave;
}That's not a mathematical sinusoid but I think that's what you meant.

Similar Messages

  • Create a line with arcs using new SdoApi (not liniear)

    Hi
    How we create a line with arcs using sdoapi (not liniear line)?
    Philipp

    Philipp,
    You have to use the default constructor for JGeometry
    to build lines with arcs:
    public JGeometry(int gtype,
    int srid, double x, double y, double z,
    int[] elemInfo, double[] ordinates)
    Currently, this is the only way to create lines with arcs.
    siva

  • Straight lines with gaps without joining

    Hi Everyone,
    I have a requirement.
    Month Qtr Year Avg
    Jan 10 200
    Feb 10 200
    Mar 10 200
    Apr 10 300
    May 10 300
    June 10 300
    July 10 250.
    I need to show the qtr year average in a line but the line shouldn't join the value from 200 to 300 and 300 to 250. Can i Have straight lines with gaps?
    Thank you.

    Also, using Plus,diamond etc would solve the problem but I want '-' symbol type. Is it possible to customize '-' symbol?

  • Polylines to Lines and Arcs

    I'm getting some metal cut-outs done of a design I did up in Photoshop and converted in Illustrator, but the end product is not that nice because Mr Metalworker has said "the Drawing file is in Polylines (many lines to make up one) because of this the laser takes them as individual contours and cuts it at less than half speed."
    He goes on to say that I need to "convert it into ‘lines and arcs’ and not ‘polylines’ then I think we can get to the point where no cleaning, filing or deburring needs to take place."
    How do I do this?  I'm a bit naive when it comes to this sort of thing and googling has led me to believe I need to do it in a CAD program?

    vector info is like a join the dots.
    image or pixel art is a grid of different coloured square pixels.
    Google will provide much info on this.
    Rasterizing is a pixel function. and will not be what you want to do.
    image trace is getting closer, but it is not accurate and with cause the issues described by your laser guy.
    Illustrator will do strange things with the fill of objects when exporting to DXF. (DXF is probably what you laser guy wants.)
    you will need to make sure everything has no fill and a black outline before exporting.
    I am guessing but if his machine uses Gcode(and I believe most still do), then he want straight lines and basic arcs.
    even getting say an Oval shape in to Gcode is complex.
    He should have Cam software to help with this as long as he gets a clean DXF file.
    here is part of your art redrawn.
    it will give you an idea on what you want it to look like.
    http://ge.tt/64UfQr22/v/0

  • How to join GRPO with AP invoice thru query ?

    hi all,
    How to join GRPO with AP invoice in sql query ?
    Jeyakanthan

    Hi Jeyakanthan
    Are you using query in SAP Business One or outside the system? If you select the tables in SAP Business One as OPCH and OPDN then no inner join will appear, as the links sit on the line level. You will need PCH1 and PDN1. The link can be found in both directions, but bear in mind that 1 AP Invoice could be based on more than 1 Goods Receipt PO. For this reason the best approach is to start at the AP Invoice line level and use the BaseType and BaseRef fields to view which lines were pulled from which Goods Receipt PO's.
    Kind regards
    Peter Juby

  • Line with a arrow

    Hi All,
         I want to draw multiple line with a arrow.  Please guide me how can i do it by code dynamically. exactly as below.
    Regards,
    Kameshwaran A.

    create an empty symbol
    put this code in it.
    //***** Set some opening parameters
    onClipEvent (load) {
    //Make original line invisible
    _root.line._visible = 0;
    //Initiate some variables
    number_lines = 0;
    line_active = 0;
    //***** Every time the mouse button is released...
    onClipEvent (mouseUp) {
    //Get the position of the mouse
    origin_x = _xmouse;
    origin_y = _ymouse; 
    //Increase the number of lines by one 
    number_lines++; 
    //Generate a new line name 
    name = "line"+number_lines; 
    //Duplicate a new line 
    _root.line.duplicateMovieClip(name, number_lines); 
    //Position the line's end point at mouse position 
    _root[name]._x = origin_x; 
    _root[name]._y = origin_y; 
    //Update line length / orientation 
    _root[name]._xscale = _root._xmouse-origin_x; 
    _root[name]._yscale = _root._ymouse-origin_y; 
    //If this is the start of a new shape 
    if (!line_active) 
    //Set the line tracking variable 
    line_active = 1; 
    //Set the start point of the new shape 
    start_x = origin_x; 
    start_y = origin_y; 
    //***** Every time the mouse is moved 
    onClipEvent (mouseMove) { 
    //If there's a line currently being drawn... 
    if (line_active) 
    //Update line length / orientation 
    _root[name]._xscale = _root._xmouse-origin_x; 
    _root[name]._yscale = _root._ymouse-origin_y; 
    updateAfterEvent(); 
    //***** When a key is pressed 
    onClipEvent (enterFrame) { 
    //If it's the Enter key 
    if (Key.isDown(Key.ENTER)) 
    //Join the end point of this line... 
    //...to the start point of the first line in this shape 
    _root[name]._xscale = ""; 
    _root[name]._yscale = ""; 
    //Reset line-tracking variable 
    line_active = 0; 
    draw a line convert it to a symbol and give it an instance name of line.
    and there you can draw lines.
    detach the lines by pressing enter.
    and thats it.
    your welcome in advance (:
    INPORTANT to leave all your symbols in the scene not in the libery are it will not work
    Message was edited by: xFARRELLx

  • Illustrator CS3 crashes if join lines on different layers

    Sent in a crash report earlier, but didn't realize the source of the error at the time -- which was that the two lines I was attempting to join were located in separate sublayers. Illustrator did not give me an error message when I attempted to join the lines, instead the lines I had joined simply vanished. If I then hit command Z to undo, the file would crash. This behavior was repeatable multiple times.
    I realize this is a bug in an older version of the software, but having this info in the forums may be of use for people still running CS3, and, if this bug has not yet been corrected in more recent versions of the software, then I hope the tech folks will take notice.

    Peter, Steve -
      That's interesting - and I was sure I'd isolated the source of the problem. I'm working in the mac OS (snow leopard) and CS3 suite is the Design Premium version. I had 3 sublayers in my layer, and each of those sublayers had about 20 paths in them. The behavior occurred repeatedly when I tried to join 2 lines that were in different sublayers (one of the endpoints was created by clipping a section out of an oval on one of the sublayers). I thought it was not a random behavior, b/c I reproduced it 4 or 5 times in a row, with 2 different pairs of lines. Yet I was able to join lines on any sublayer with no problem, and when I pulled all the lines out of the sublayers, I was able to join the two sets of lines that had previously been causing the crash without any difficulty. So I'm not sure why your tests did not reproduce the problem -- or why I had the problem in the first place.
    Thanks,
    Suzi

  • How to join line within ellipse

    I have the following shape:
    Which is an ellipse which I happened to draw a line inside of. My goal is to be able to join the line with the ellipse so I can make it part of the shape, then I'd like to chop off the top of the ellipse (the part on top of the line).
    Any help would be appreciated.
    Thanks.

    Kiss,
    If I understand it in the right way, you can just extend the line past the the boundary of the ellipse, than Object>Path>Divide Onjects Below, then delete the cap.
    You can etxend the line by adding something to the W value (or multiply it by something) in the Transform palette/panel.

  • IF Statement in Join Line

    Is it possible to use a IF statement (i.e. CASE, DECODE) in the Join Line?
    I need create a query that depending on the value of a column it will determine if I use a column A or column B in my join statement. I was thinking something like the following:
    Select a.Value1, a.Value2, b.ColumnA, b.ColumnB
    FROM Table1 a
    INNER JOIN Table2 b ON a.Value2 = (if b.ColumnZ='Dept' then b.ColumnA else b.ColumnB END)
    Oracle Version 10g
    OS Windows XP
    Thanks in advance!

    Hi,
    Remember what a CASE expression does: it returns a single value in one of the SQL data types (such as VARCHAR2, NUMBER or DATE).
    Each THEN (or ELSE) clause of a CASE expression references something that the CASE expression might return, so after each THEN (or ELSE) keyword there must be a single value in one of the SQL data types.
    So you can't say:
    case tdsi.level_code
         when  'L'  then  tdsid.privilege_code = tdlm.location_code
         when  'R'  then  tdsid.privilege_code = tdlm.region_code
         when  'C'  then  tdsid.privilege_code = tdlm.country_code
    endWhat is the data type being returned? "tdsid.privilege_code = tdlm.location_code" is not a single value in any of the SQL data types.
    If location_code, region_code, country_code and privilege_code all have the same data type, then you can do something like this:
    join      dirpipe.dirpipe_location_map      tdlm      on      case tdsi.level_code
                                            when 'L' then tdlm.location_code
                                            when 'R' then tdlm.region_code
                                            when 'C' then tdlm.country_code
                                       end     = tdsid.privilege_code

  • Line with red blob

    What is the line with a red marker on its left-hand end, in iCal's weekly view????

    Hey Andy,
    That is a time-of-day marker, I believe.

  • Open item account line with flow type has to contain a partner

    Hi,
    I am getting the following error while doing periodic posting in flexible real estate management.
    " Open item account line with flow type Z240 has to contain a partner"
    " Open item account line with flow type Z820 has to contain a partner"
    Message no. RERACA005
    I have found a similar message in this forum.
    This error is not coming for other flow type Z120 in the contract.
    The accrual type for accruals is set  as ANRVCN and Accrual type for deferrals is set as TRRVCN in the definition of flow type with S Debit posting.
    For ANRVCN , posting supported is " Only periodic"  and for TRRVCN " All"
    Please guide as to where I need to check and correct.
    Regards,
    T Saravanan

    Hi Saravanan.
    I have the same problem, could you help me to solve it?
    thanks in advance!
    Lucas

  • Schedule Lines with Firm

    Hi Gurus,
    I have an Issue in Schedule lines. Delivery schedules lying with in the firm zone has firm indicator 1(Firm zone) in ME33l. The same schedule line shows in MD04 with * Symbol as firmed. In some of the cases Delivery schedules push out from the Firm Zone does not have a Firm Indicator in ME33l but it is firmed in MD04 with * symbol.In which table & field I can Identify the Firmed schedule lines with * symbol in MD04.Please Help me.
    Regards,
    Senthil.K

    Delivery schedules lines are populated when MRP is Run.
    symbol indicates that you have done manual intervention in the purchase order mentioned.
    In MDO4 you can see * symbol
    Ganesh kumar

  • How do you get a line with MULTIPLE fields to WRAP ?

    How do you get a line with MULTIPLE fields to WRAP ?
    Good afternoon everyone...
    THE PROBLEM: Why doesn’t a line with multiple fields WRAP?
    HYPOTHETICAL EXAMPLE/WHAT I”D LIKE TO SEE
    If I have 2 fields on a line (this is now a hypothetical example and nothing to do with my actual report)….let’s call them field A and field B. And if field A has values of all ‘X’ and field B has values of all ‘Y’…then….the normal case would be (ignore dots – only for spacing):
    A……………………… B
    XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYY
    But what if A is too long? I would want to see B wrap onto the next line like this:
    A……………………………………………………B
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX YYYYYY
    YYYYYYYYYYYYY
    And similarly….if B is extra long, can the line print as:
    A………………………. B
    XXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    I don’t want the case where B is long and I get:
    A………………… …B…
    XXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYY
    ………………………..YYYYYYYYYYYYYYYYYYYYY
    I can see how you can wrap an individual field like that…but how can you WRAP a line of[b] fields within the frame so it wraps to the BEGINNING of the frame on next line?
    My SPECIFIC CASE
    I have a report that I have stripped down to a simple structure for the purposes of this explanation.
    My DATA MODEL has the main QUERY (for plant family and species data). The columns of the query are divided into 2 groups. The 1st GROUP contains the family data. Below that is the rest of the species data in a 2nd GROUP.
    Linking from the 2nd species group (above) is a new QUERY to extract REGION data based on the common key field. Under this 2nd query is another group with all the REGION columns.
    The LAYOUT MODEL has a group frame (the main , base one)
    On top of this is a repeating frame based on the 1st group (family data).
    On top of this is another repeating frame for the 2nd group (species data).
    On top of this is 2 Frames on the same line line. The 1st frame contains columns from the species group .
    The 2nd frame on this line is a repeating frame. The PRINT DIRECTION for this frame is ACROSS/DOWN. It repeats details of the REGION where the species is found. These columns come from this group come from the REGION QUERY and GROUP.
    All fields on the report line have variable horizontal elasticity.
    The problem is that when there is too much data on the line, it does NOT WRAP to the 2nd line.. It TRUNCATES.
    Can the line be made to WRAP????..
    In my current report, 1 of 2 things is happening:
    1) All fields print on the line until it hits the page boundary and then it just stops. Truncated!
    2) All fields print on the current line, then Oracle Reports throws a new page to print the REMAINDER of the long, input line
    But I would like a LONG line to continue printing onto the following line of the same page.
    I have tried all combinations of the elasticity fields and the ‘ADVANCED LAYOUT’ properties.
    I have been focussing my attention with this problem on the frames .
    We are using REPORT BUILDER V 6.0.8.26.0
    Thankyou to anyone who may offer assistance.
    Tony Calabrese.

    Steve,
    you gain 1 thing, but you lose something else!
    This thing is SO frustrating!
    Hey Steve! Good afternoon.
    I've done as you suggested....I have a long text boilerplate item - the only 1 on the line...and it has all the column in it.
    So it looks like:
    &col1 &col2 &col3 &col4 &col5 etc etc etc
    And the line expands nicely to each field's requirements.
    And when it gets to the right page boundary...it WRAPS to the next line! Beautiful!!!
    The only thing is that...when I had individual fields across the line I was able to create format triggers for those fields. And in doing so I was able to reduce the font and change the justification. I had to do that because some of the fields had to appear superscripted.
    So I wanted something like (ignore the dots):
    ...................................ppppp
    AAAA BBBB CCCCC DDDD EEEE FFFFFF
    So the field of 'ppppp' appeared slightly higher on the line than the other fields...
    I can't see how I can do this with a single TEXT field containing all the &COL values.
    Have you ever come across anything like this?
    Thankyou again,
    Tony Calabrese 12/4/2007

  • How can I print the "number lines" with the code in Visual Studio?

    How can I print the "number lines" with the code in Visual Studio?

    Hi BillionaireMan,
    What about your issue now?
    If you have resolved it, you can share the solution here, which will be beneficial for other members with the same issue.
    If you did not, please tell us more information,we will try my best to help you.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can you switch to alternate phone on line with edge payment?

    I have a need to temporarily from time to time switch to an alternate phone on a line I currently have Edge payments on.  I will continue to keep and use the phone I'm making edge payments on, but if I take the SIM out and put it in another phone for a few days, will that affect my monthly Edge payments?  I won't be putting a different SIM in the phone I'm making payments on.
    Anyone have experience with this?

    lewisr13 and mrhelper thanks for the responses.  To clarify, I have an iPhone currently on a line with edge payments being made on that phone.  I may temporarily from time to time need to switch to an Android phone on that line.  I would like to keep making Edge payments on that iPhone and not have to pay it off all at once if I switch to the other phone temporarily.  I have no plans to put the iphone on another line during that time and that Android phone won't be purchased via that line or any other line on my account.  It would be simple swapping of SIM from iPhone to Android phone and back.
    I'm just trying to avoid getting hit for the whole cost of the iPhone at once and prefer to keep my monthly Edge payments for it...that's my primary goal or what I want to understand.

Maybe you are looking for

  • The Video Out Problem...Fixed?

    I know Wikipedia can be edited by virtually anyone with membership and an opinion, but I had to know. It said that an itunes update 1.0.2 fixed the video out problem...does that mean that videos can now be connected to a TV and play on the TV? They f

  • Select Options in Web dynpro

    Hi, I have a report, this has select options for users to enter the selection criteria. On the screen users can see 'Cancel', 'Check', 'Reset' and 'Copy' buttons but NO 'SAVE'!!! Is there a way to save the selection made by the user as a variant? by

  • Adobe Form - missing font

    Hi all, I need help for output Adobe. I have create a Adobe Form in LCD (SFP). I change the font from Arial to NexusSans. In the LCD Layout the text will shown correctly in the font Nexus. The printing is controlled over an application form in SAP. i

  • How to import ratings/metadata from previous programs (Bridge, Lightroom)

    With the new release of Aperture 3, I am considering make the switch from Lightroom. That being said, I have imported a few folders as tests and cannot figure out how to get Aperture to recognize star ratings that I have applied in Bridge (raw and jp

  • Can I see What's Playing on a laptop networked to the main computer?

    My iTunes program, files and music all reside on a 1T drive connected to a MacPro in the office. I generally set up playlists and run music from there, using AirTunes to put the music all around. My laptop in the living room is networked to it. Is th