Rendering_options, "back edges"
-
Sketchup.active_model.rendering_options.each_pair do |k,v|; puts "#{k}=#{v}"; endBackgroundColor=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 -
Thanks. I can't see any differences between when "back edges" is turned on or off. CB.
-
+1
I`m searching name of rendering option -
@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 -
thanks, but
in ruby consoleSketchup.active_model.rendering_options["EdgeDisplayMode"] =works only 1 and 2
Sketchup pro 8.0.3117
-
@dem said:
thanks, but
in ruby consoleSketchup.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.
-
Sorry, i mind 0 and 1..
And how can I add it to API?
ps. my English is not good
-
@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.
-
Any updated info for this topic?
-
@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
RenderingOptionshash:The key is:
"DrawBackEdges"See API documentation:
http://ruby.sketchup.com/Sketchup/RenderingOptions.html
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 LoginAdvertisement