sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Hidden or soften edge on a face?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 272 Views 2 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.
    • C Offline
      confitex architure
      last edited by

      Hello,
      it has been a long time I lost contact with ruby. Happy to be back!

      I'm creating a face,

      
      pt1=Geom;;Point3d.new(0,0,0)
      pt2=Geom;;Point3d.new(rand(100),rand(100),0)
      pt3=Geom;;Point3d.new(rand(100),rand(100),0)
      baseface = Sketchup.active_model.entities.add_face(pt1,pt2,pt3)
      
      

      but I want one of the edge(for example between pt1 and pt2) to be hidden or soften.

      Any idea how to do it?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • M Offline
        Matt666
        last edited by

        Hi !
        To soft an edge, you have two parameters : edge.soft & edge.smooth

        e = baseface.edges[0]
        e.smooth=true
        e.soft=true
        

        😉

        Frenglish at its best !
        My scripts

        1 Reply Last reply Reply Quote 0
        • C Offline
          confitex architure
          last edited by

          Cool,
          Merci Matt!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement