sketchucation logo sketchucation
    • Login
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

    Rendering_options, "back edges"

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 5 Posters 3.2k Views 5 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.
    • thomthomT Offline
      thomthom
      last edited by

      Sketchup.active_model.rendering_options.each_pair do |k,v|; puts "#{k}=#{v}"; end

      BackgroundColor=Color(204, 204, 201, 255) BandColor=Color( 0, 0, 0, 127) ConstructionColor=Color( 0, 0, 0, 255) DepthQueWidth=4 DisplayColorByLayer=false DisplayDims=true DisplayFog=false DisplayInstanceAxes=false DisplaySketchAxes=true DisplayText=true DisplayWatermarks=true DrawDepthQue=false DrawGround=false DrawHidden=false DrawHorizon=true DrawLineEnds=true DrawProfilesOnly=false DrawSilhouettes=true DrawUnderground=true EdgeColorMode=1 EdgeDisplayMode=1 EdgeType=0 ExtendLines=true FaceBackColor=Color(164, 178, 187, 255) FaceColorMode=0 FaceFrontColor=Color(255, 255, 255, 255) FogColor=Color(204, 204, 201, 255) FogEndDist=-1.0 FogStartDist=-1.0 FogUseBkColor=true ForegroundColor=Color( 0, 0, 0, 255) GroundColor=Color(210, 208, 185, 255) GroundTransparency=50 HideConstructionGeometry=false HighlightColor=Color( 0, 1, 255, 255) HorizonColor=Color( 0, 0, 0, 0) InactiveFade=0.25 InactiveHidden=false InstanceFade=0.5 InstanceHidden=false JitterEdges=false LineEndWidth=7 LineExtension=2 LockedColor=Color(255, 0, 0, 255) MaterialTransparency=true ModelTransparency=false RenderMode=2 SectionActiveColor=Color(255, 135, 0, 255) SectionCutWidth=3 SectionDefaultCutColor=Color( 0, 0, 0, 255) SectionInactiveColor=Color(112, 105, 97, 255) ShowViewName=true SilhouetteWidth=2 SkyColor=Color(198, 205, 208, 255) Texture=true TransparencySort=0

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

      1 Reply Last reply Reply Quote 0
      • daikuD Offline
        daiku
        last edited by

        Thanks. I can't see any differences between when "back edges" is turned on or off. CB.

        Clark Bremer
        http://www.northernlightstimberframing.com

        1 Reply Last reply Reply Quote 0
        • demD Offline
          dem
          last edited by

          +1
          I`m searching name of rendering option

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            @daiku said:

            Thanks. I can't see any differences between when "back edges" is turned on or off.

            You are correct. I filed a beta bug report, and Simone logged it as internal bug 2916316.

            Additional comments, and ideas I posted:

            @unknownuser said:

            OK.. I looked at this a bit further, and my conculsion is that...

            RenderingOptions[’EdgeDisplayMode’] needs to be updated.

            The setting is tied to Edges

            Currently the value of the RenderingOptions[’EdgeDisplayMode’] key is 0 when both are turned off.
            Toggling Edges ON adds 1 to the value. (BUT.. if BackEdges is ON, and you turn Edges OFF, the value remains at 1.)

            We need toggling BackEdges ON to add 2 to the value, so that:

            RenderingOptions[’EdgeDisplayMode’] :
            0 = both OFF
            1 = Edges ON && BackEdges OFF
            2 = Edges OFF && BackEdges ON
            This may not be used (rendered,) meaning that mode 3 would be enforced, but we should still be able to test for mode setting 2 (the state of checkboxes in the Styles dialog, and the menu item check states.)
            3 = both ON

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • demD Offline
              dem
              last edited by

              thanks, but
              in ruby console

              Sketchup.active_model.rendering_options["EdgeDisplayMode"] = 
              

              works only 1 and 2

              Sketchup pro 8.0.3117

              1 Reply Last reply Reply Quote 0
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

                @dem said:

                thanks, but
                in ruby console

                Sketchup.active_model.rendering_options["EdgeDisplayMode"] = 
                

                works only 1 and 2

                Sketchup pro 8.0.3117

                It should only have 0 and 1 values at this time.

                You did not read what I said correctly. I am proposing that values 2 and 3 be added to the API so that we can know the BackEdges setting.

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • demD Offline
                  dem
                  last edited by

                  Sorry, i mind 0 and 1..
                  And how can I add it to API? 😃

                  ps. my English is not good

                  1 Reply Last reply Reply Quote 0
                  • Dan RathbunD Offline
                    Dan Rathbun
                    last edited by

                    @dem said:

                    And how can I add it to API?

                    You CANNOT.

                    Google must do it on the C++ side of the application code.

                    That is why I filed the Bug Report, and a number was assigned to it, by the Sketchup Development Team.

                    I'm not here much anymore.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TBoy
                      last edited by

                      Any updated info for this topic?

                      1 Reply Last reply Reply Quote 0
                      • Dan RathbunD Offline
                        Dan Rathbun
                        last edited by

                        @tboy said:

                        Any updated info for this topic?

                        YES. (5 years after this thread ...)

                        In the SketchUp 2015 release, a new key was added to the RenderingOptions hash:

                        The key is: "DrawBackEdges"

                        See API documentation:
                        http://ruby.sketchup.com/Sketchup/RenderingOptions.html

                        I'm not here much anymore.

                        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