Construct point from circles

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Construct point from circles


    Is the order in which you take the points for the circles in order to make intersect points important? I can only 'properly' get a point on one correct edge, example on the edge of where I took the 5th hit. I can not get a point on the edge where I took the 1st hit.




    points2.jpg

    Last edited by PowerJunkie; 01-11-2019, 03:28 PM.
    -Bill

    PC-DMIS 4.2 MR1 - Global Image 7107 - PH10MQ - SP600M

  • #2
    Seems like most times I figure stuff out only AFTER I post a help question. I constructed 2 different circles on the OD, once I selected the other OD circle and then the smaller one it worked, I now have the points I need. Aye karumba!!
    -Bill

    PC-DMIS 4.2 MR1 - Global Image 7107 - PH10MQ - SP600M

    Comment


    • EmilySue
      EmilySue commented
      Editing a comment
      I have this happen often as well... also can't tell you how many times I've deleted a post because just typing it out helped me think it through. :-)

  • #3
    It may be annoying to you, but it could help someone else later since you posted the solution. Thank you for that.
    PC-DMIS 2016.0 SP8

    Jeff

    Comment


    • #4
      Originally posted by Schrocknroll View Post
      It may be annoying to you, but it could help someone else later since you posted the solution. Thank you for that.
      When the intersection between two feaures give two different points, PC-DMIS gives a result depending on the direction of features.
      Then, if you want both points, the solution is reversing one of the features.

      Comment


      • #5
        Originally posted by JEFMAN View Post

        When the intersection between two feaures give two different points, PC-DMIS gives a result depending on the direction of features.
        Then, if you want both points, the solution is reversing one of the features.
        Yep.


        B&S CHAMELEON/PCDMIS CAD++ V2011

        There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

        sigpic

        Comment


        • #6
          It can be done with some assignments ! (LOL about "some !!!!!!)
          Let's say that the OD is the origin.

          In a 2d plane (XY), you have :
          The equation is X²+Y²=R²

          The little circle equation is :
          (X-a)²+(Y-b)²=r² (a and b = coordinates of the center)

          In the first equation, you can write Y²=R²-X², change Y in the second from this and solve !

          It gives :

          Code:
          ASSIGN/R1=CIRC1.R
          ASSIGN/R2=CIRC2.R
          ASSIGN/AA=CIRC2.X
          ASSIGN/BB=CIRC2.Y
          ASSIGN/W=(R1^2-R2^2+AA^2+BB^2)/(2*BB)
          ASSIGN/DD=(2*W*AA/BB)^2-4*(W^2-R1^2)*(1+AA^2/BB^2)
          ASSIGN/X1=((2*W*AA/BB)+SQRT(DD))/(2*(1+AA^2/BB^2))...................................X value of first point
          ASSIGN/X2=((2*W*AA/BB)-SQRT(DD))/(2*(1+AA^2/BB^2))...................................X value of first point
          
          here begins the calculation of Y value of first point
          
          ASSIGN/Y11=SQRT(R1^2-X1^2)
          ASSIGN/Y12=-SQRT(R1^2-X1^2)
          ASSIGN/Y13=(X1-AA)^2+(Y11-BB)^2-R2^2
          ASSIGN/Y14=(X1-AA)^2+(Y12-BB)^2-R2^2
          IF/Y13==0
          ASSIGN/Y1=Y11
          END IF
          IF/Y14==0
          ASSIGN/Y1=Y12
          END IF
          ELSE/
          COMMENT,OPERATOR,(...)
          "CHECK  ASSIGNMENTS OR SCREAM AT JEFMAN !"
          END ELSE
          
          here begins the calculation of Y value of second point
          
          ASSIGN/Y21=SQRT(R1^2-X2^2)
          ASSIGN/Y22=-SQRT(R1^2-X2^2)
          ASSIGN/Y23=(X2-AA)^2+(Y21-BB)^2-R2^2
          ASSIGN/Y24=(X2-AA)^2+(Y22-BB)^2-R2^2
          IF/Y23==0
          ASSIGN/Y2=Y21
          END IF
          IF/Y24==0
          ASSIGN/Y2=Y22
          END IF
          ELSE/
          COMMENT,OPERATOR,(...)
          "CHECK  ASSIGNMENTS OR SCREAM AT JEFMAN !"
          END ELSE

          Then, create a generic point with X1, Y1 and CIRC2.Z, and another with X2 , Y2 and CIRC2.Z


          Assigning all the calculation can be done in a loop, by incrementing the names of CIRC2 (like "CIRC"+V1)

          Comment


          • AndersI
            AndersI commented
            Editing a comment
            I like the COMMENTs...

        • #7
          Thanks all Simple is best for me. Select the big circle and then the small circle. Then for the other side select the small circle and then the big circle. It's just too easy!

          I've been away from PCD for about 8 years doing gear stuff. It's great to be back but I'm shaking off the cobwebs.
          -Bill

          PC-DMIS 4.2 MR1 - Global Image 7107 - PH10MQ - SP600M

          Comment

          Related Topics

          Collapse

          Working...
          X