Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: A little direction please...

  1. #11
    Member
    Join Date
    2017-03
    Posts
    7


    Default Re: A little direction please...

    Before I start making changes to do just straight lines, I ran again, and when done creating the path, I looked at the path.points (before it did the actual drawing). I started with 9, and now there are 13. These extra points are being put in by the two ArcTo lines indicated by'C1' and 'C2'. The added coordinates are indicated by '**'...

    54.87623 -485.1765, 1
    -67.19397, -463.8181 **
    179.7689 -507.0286, 2 C1
    207.9465, -756.1548 **
    65.13455 -501.0532, 3
    84.47117 -522.8462 **
    89.57177 -528.5947, 4 C2
    90.56247, -536.2158 **
    37.36042 -1038.036, 5
    88.97673 -1027.655, 6 L1
    160.4506 -1012.855, 7
    196.4012 -1004.363, 8 L2
    358.8415 -965.3903 9

  2. #12
    Member
    Join Date
    2017-03
    Posts
    7


    Default Re: A little direction please...

    Ok, using the same 9 coordinates as above (which include the two Chord lines), but without doing the ArcTo (curves) code, this is what the drawing looks like...
    SkiaSharpImage2.PNG

    To give you a better idea of how the lines look without the curves...
    Now, eliminating the two chord lines, and extending (guestimates), lines 3 and 5 above (except for the first line, all the other line coordinates were subsequently changed)...
    54.87623 -485.1765,
    -164.6158 -473.7353, - eliminated #2 above and extended # 3 by 105 ft
    -218.8662 -1003.073, - eliminated # 4 above and extended # 5 by 15 ft
    -167.2499 -992.6909,
    -95.77599 -977.8915,
    -59.82541 -969.3992,
    102.6149 -930.4265

    And this is what the drawing looks like now...
    SkiaSharpImage3.PNG

  3. #13
    Active Member
    Join Date
    2007-06
    Posts
    95


    Default Re: A little direction please...

    The image SkiaSharpImage2.PNG is showing real promise, and has features demonstrating a relationship to Property.PNG in post #9 of this thread.

    I think part of the discrepancy is how screen coordinates work with Skia - similar to XAML - which is that positive Y values work down the screen. In most CAD applications positive Y progresses up the screen.
    I also think that the Northern-Eastern to screen coordinate translation mishap has made Coordinate 1 (54.87623 -485.1765) out of sorts with the remainder, and that's why there is that crossover in the property layout.

    Re-examine the coordinate generating code with that Up/Down discrepancy in mind. Maybe something will turn up.

  4. #14
    Member
    Join Date
    2017-03
    Posts
    7


    Default Re: A little direction please...

    Figured out how to show better image of the land...
    PlanImage.PNG

    I am wondering if using coordinate # 1 (the bottom line of the property, pointing to the road), as one of the points in the ArcTo, was wrong. So, I took the line from the property underneath (along the road (232.85 ft), and am using that as the one of the points in the Arcto, (0.0005950928f, 0.009246826f)...

    if (i == 1)
    {
    SKPoint SkPoint1 = new SKPoint(0.0005950928f, 0.009246826f);
    SKPoint SkPoint2 = new SKPoint(MyGlobals.strX[1], MyGlobals.strY[1]); //curve
    //SKPoint SkPoint3 = new SKPoint(MyGlobals.strX[0], MyGlobals.strY[0]); //create 0 again for use with offset
    SkPoint1.Offset(SkPoint2); //x=234.6451 y=-992.2051
    //SkPoint3.Offset(SkPoint2); //x=234.6451 y=-992.2051
    //path.ArcTo(SkPoint1, SkPoint3, 335);
    path.ArcTo(SkPoint2, SkPoint1, 335);
    continue;
    }

    I have tried it two ways, first using path.ArcTo(SkPoint1, SkPoint2, 335);...
    SkiaSharpImage4.PNG

    Then path.ArcTo(SkPoint2, SkPoint1, 335);...
    SkiaSharpImage5.PNG

    Not knowing this stuff, I am really not sure what is going on here.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. LOOKING FOR DIRECTION
    By oLDsCHOOL in forum Revit Architecture - General
    Replies: 5
    Last Post: 2012-03-29, 09:04 PM
  2. I need a direction here
    By burninin1 in forum Inventor - General
    Replies: 7
    Last Post: 2008-12-14, 05:54 PM
  3. grain direction
    By danilojrmercado in forum Revit - Rendering
    Replies: 6
    Last Post: 2008-12-03, 08:11 PM
  4. Direction of a box in VBA
    By ruselgun in forum VBA/COM Interop
    Replies: 1
    Last Post: 2008-09-23, 04:18 PM
  5. direction of surfaces
    By ibn_seeena in forum MDT - General
    Replies: 3
    Last Post: 2008-02-19, 06:12 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •