sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    Add vertex on curve at length - or edge on surface at length

    Scheduled Pinned Locked Moved Plugins
    25 Posts 7 Posters 5.6k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TIGT
      TIG Moderator
      last edited by

      You can make a list of the new_vertices and then move the old_vertices to their locations [vector_from old_to_new?], using a transform_by_vectors on the new_vertices...

      PS: Glad someone can understand what I'm a saying... πŸ˜‰

      TIG

      1 Reply Last reply
      Reply Quote 0
      • sdmitchS
        sdmitch
        last edited by

        @jclements said:

        Very nice. Thank you.

        Could a similar script add points at Equal Intervals? Perhaps leave the points selected or grouped after being created?

        It could select and/or group the construction points but not the individual vertices added to the curve.

        thomthom, what kind of "extruded surface" are we talking about? Curved or straight?

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        1 Reply Last reply
        Reply Quote 0
        • JClementsJ
          JClements
          last edited by

          Hi,

          I had in mind the construction points; the user would input how many equal intervals, contruction points would be placed and then grouped.

          John | Illustrator | Beaverton, Oregon

          1 Reply Last reply
          Reply Quote 0
          • jeff hammondJ
            jeff hammond
            last edited by

            @sdmitch said:

            ThomThom,

            The attached plugin will add a vertex at a given interval along a selected curve.

            hmm.. i don't think that's quite right. (or at least what i'm talking about.. maybe i'm mis-understanding TT's question ?)

            it's just placing a point along the curve but it's not actual moving the vertex into it's proper place..

            as an exaggeration, here's a picture showing an arc with 3 segments.. then it shows how it should look after running the script..

            click pic for bigger

            [EDiT].. well, i reread thomas' original post and i think i'm misunderstanding him 😳
            it looks as if the script you (sam) wrote is what he's looking for

            dotdotdot

            1 Reply Last reply
            Reply Quote 0
            • sdmitchS
              sdmitch
              last edited by

              Jeff, You are right regarding the arc, the point added is on the existing segment.

              Nothing is worthless, it can always be used as a bad example.

              http://sdmitch.blogspot.com/

              1 Reply Last reply
              Reply Quote 0
              • thomthomT
                thomthom
                last edited by

                @unknownuser said:

                hmm.. i don't think that's quite right. (or at least what i'm talking about.. maybe i'm mis-understanding TT's question ?)

                it's just placing a point along the curve but it's not actual moving the vertex into it's proper place..

                You understood me correctly. πŸ˜„

                @sdmitch said:

                thomthom, what kind of "extruded surface" are we talking about? Curved or straight?

                An extruded surface from the 2D profile of a curve. It's the shape of a building constant of several curves.

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply
                Reply Quote 0
                • TIGT
                  TIG Moderator
                  last edited by

                  @sdmitch said:

                  Jeff, You are right regarding the arc, the point added is on the existing segment.
                  But as I said in my diatribe... if it's a Arc you can do the Math to work out where the swept start-point will be to become the new point where the new vertex ought to be on the true circumference, so you add the new vertex on the segment as normal then apply an entities transformation on the new vertex to relocate it at that new point that lies on the circumference... The Arc will become a Curve...

                  TIG

                  1 Reply Last reply
                  Reply Quote 0
                  • thomthomT
                    thomthom
                    last edited by

                    @tig said:

                    @sdmitch said:

                    Jeff, You are right regarding the arc, the point added is on the existing segment.
                    But as I said in my diatribe... if it's a Arc you can do the Math to work out where the swept start-point will be to become the new point where the new vertex ought to be on the true circumference, so you add the new vertex on the segment as normal then apply an entities transformation on the new vertex to relocate it at that new point that lies on the circumference... The Arc will become a Curve...

                    Are we now talking about a new topic?
                    (Just trying to catch up to the post since last evening.)

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply
                    Reply Quote 0
                    • TIGT
                      TIG Moderator
                      last edited by

                      No - same topic.
                      Adding a new vertex on a curve splits a segment.
                      If the curve is an Arc then we have been considering if the vertex should split a segment AND adjust the vertex so it is on the true circumference too...

                      TIG

                      1 Reply Last reply
                      Reply Quote 0
                      • thomthomT
                        thomthom
                        last edited by

                        I see. In terms of what I needed to, no adjustments can be done. But I can see the use of this option.
                        Just had to check if there was existing plugins I'd missed out of.

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply
                        Reply Quote 0
                        • sdmitchS
                          sdmitch
                          last edited by

                          I have modified the plugin so that, if the the selected entity is an arc, the point is placed in its true position instead of on the segment as before.

                          Should this be an option?


                          Add points to curve

                          Nothing is worthless, it can always be used as a bad example.

                          http://sdmitch.blogspot.com/

                          1 Reply Last reply
                          Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better πŸ’—

                          Register Login
                          • 1
                          • 2
                          • 1 / 2
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement