sketchucation logo sketchucation
    • Login
    1. Home
    2. PascalHenry
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Groups 1

    PascalHenry

    @PascalHenry

    10
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    PascalHenry Unfollow Follow
    registered-users

    Latest posts made by PascalHenry

    • GL_TRIANGLES and COLOR

      Hi all,
      I've tried to draw triangles with a given color. But my triangles stay black !!
      I use the method draw from class View with GL_TRIANGLES parameter. This draw method is called
      in draw(view) method from Tool class. Color is set with the function drawing_color
      See code as example below

      %(#0000BF)[def draw(view)
      color1=Sketchup::Color.new(150,100, 0)
      pt=Array.new
      pt[0]=Geom::Point3d.new(0,0,0)
      pt[1]=Geom::Point3d.new(0,10,0)
      pt[2]=Geom::Point3d.new(10,0,10)
      view.drawing_color=color1
      view.draw(GL_TRIANGLES,pt)
      end
      ]

      Is it possible to colorize my triangle with a chosen color?

      Thanks

      posted in Developers' Forum
      P
      PascalHenry
    • RE: Strange face !!

      Hello Jim,

      Thank you.
      Actually it was too easy!
      But hide entity feature seems to be a little bit confusing
      when we switch layers...
      Thanks again

      posted in SketchUp Discussions
      P
      PascalHenry
    • Strange face !!

      Hi all,

      I've got some issues with sketchup faces.
      Here are some explanations about the linked file's "life".

      I get a 3D terrain from google earth with sketchup (used "get current view")
      I unlock all object and remove data on Layer named "google earth snap shot".
      Next, I select 3D terrain and explode it (contextual menu).
      At this stage, I'd like select one face but I can only select all the surface (why????) and display bounding edges (contextual menu/select/bounding edges) which seem hide (discontinuous lines)!!
      Anyway, I continu to dissect my terrain. I use "Add Detail" tool (from sand box) on terrain.
      Now some edges are always visible, some still hide. All faces are triangle and can be separatly selected, but as I write just before, all their edges are not visible.
      Finally, I choose to isolate one face without visible edge. so I delete all other faces and edges except my chosen strange face. I've joined the sketchup file with this face.

      This face is strange because :
      When I unhide its edges, I can't select separatly these edges. Why ????
      When I analyse the entities in the model with a ruby script, there are 1 face and 4 edges. Why ????

      Is someone could "give me the light" about this strange face?

      Thanks
      Regards


      test01.skp

      posted in SketchUp Discussions sketchup
      P
      PascalHenry