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

    Face.classify_point - compare results?

    Scheduled Pinned Locked Moved Developers' Forum
    25 Posts 5 Posters 1.5k 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      Out of interest I wrote this snippet
      Sketchup.constants.sort.each{|e|puts e;eval("Sketchup::"+e+".constants").each{|c|puts "\t"+c};puts}
      which prints out all Sketchup 'constants' - as this on my system at least [e.g. I expect Geodesic is an extra type added by a script...] There aren't that many 'constants' found this way...

      AppObserver
      
      ArcCurve
      
      AttributeDictionaries
      
      AttributeDictionary
      
      Behavior
      
      Camera
      
      Color
      
      ComponentDefinition
      
      ComponentInstance
      
      Console
      
      ConstructionLine
      
      ConstructionPoint
      
      Curve
      
      DefinitionList
      
      DefinitionObserver
      
      DefinitionsObserver
      
      Drawingelement
      
      Edge
      
      EdgeUse
      
      Entities
      
      EntitiesObserver
      
      Entity
      
      EntityObserver
      
      Face
      	PointOutside
      	PointInside
      	PointOnFace
      	PointUnknown
      	PointOnEdge
      	PointNotOnPlane
      	PointOnVertex
      
      Geodesic
      	TETRA_S
      	SQRT2
      	PRIMITIVES
      	TETRA_R
      	GOLDEN_MEAN
      	TETRA_Q
      	TETRA_T
      	SQRT3
      
      Group
      
      HLR
      
      Image
      
      Importer
      	ImportFail
      	ImportFileNotFound
      	ImportSuccess
      	ImporterNotFound
      	ImportCanceled
      
      InputPoint
      
      InstanceObserver
      
      Layer
      
      Layers
      
      LayersObserver
      
      Loop
      
      Material
      
      Materials
      
      MaterialsObserver
      
      Menu
      
      Model
      
      ModelObserver
      
      OptionsManager
      
      OptionsProvider
      
      OptionsProviderObserver
      
      Page
      
      Pages
      	UnitsPixels
      	ImageLinked
      	UnitsNormalizedY
      	ImageEmbeddedAndLinked
      	UnitsNormalizedX
      	ImageEmbedded
      
      PagesObserver
      
      PickHelper
      
      RenderingOptions
      	ROPAssign
      	ROPSetDisplayInstanceAxes
      	ROPSetFogHint
      	ROPSetDisplaySketchAxes
      	ROPSetGroundColor
      	ROPSetExtendEdges
      	ROPSetLineExtension
      	ROPSetDepthQueWidth
      	ROPSetSectionDefaultCutColor
      	ROPSetFogUseBkColor
      	ROPSetTexture
      	ROPSetHighlightColor
      	ROPEditComponent
      	ROPSetModelTransparency
      	ROPSetDrawUnderground
      	ROPSetFaceColorMode
      	ROPSetFogDist
      	ROPSetLockedColor
      	ROPSetSkyColor
      	ROPSetJitterEdges
      	ROPSetExtendLines
      	ROPSetLineEndEdges
      	ROPSetSectionInactiveColor
      	ROPSetDisplayDims
      	ROPSetTransparencyObsolete
      	ROPSetForegroundColor
      	ROPDrawHidden
      	ROPSetEdgeType
      	ROPSetDrawGround
      	ROPSetProfileWidth
      	ROPSetFogColor
      	ROPSetProfilesOnlyEdges
      	ROPSetHideConstructionGeometry
      	ROPSetEdgeColorMode
      	ROPSetDisplayColorByLayer
      	ROPSetDepthQueEdges
      	ROPSetSectionActiveColor
      	ROPSetDisplayText
      	ROPSetRenderMode
      	ROPSetBackgroundColor
      	ROPSetSectionDisplayMode
      	ROPSetFaceColor
      	ROPSetDrawHorizon
      	ROPSetProfileEdges
      	ROPSetDisplayFog
      	ROPSetLineEndWidth
      	ROPSetSectionCutWidth
      	ROPSetEdgeDisplayMode
      	ROPSetConstructionColor
      	ROPTransparencySortMethod
      	ROPSetMaterialTransparency
      	ROPSetGroundTransparency
      
      RenderingOptionsObserver
      
      SectionPlane
      
      Selection
      
      SelectionObserver
      
      ShadowInfo
      
      ShadowInfoObserver
      
      Style
      
      Styles
      
      Text
      
      Texture
      
      TextureWriter
      
      Tools
      
      ToolsObserver
      
      UVHelper
      
      Vertex
      
      View
      
      ViewObserver
      
      ["AppObserver", "ArcCurve", "AttributeDictionaries", "AttributeDictionary", "Behavior", "Camera", "Color", "ComponentDefinition", "ComponentInstance", "Console", "ConstructionLine", "ConstructionPoint", "Curve", "DefinitionList", "DefinitionObserver", "DefinitionsObserver", "Drawingelement", "Edge", "EdgeUse", "Entities", "EntitiesObserver", "Entity", "EntityObserver", "Face", "Geodesic", "Group", "HLR", "Image", "Importer", "InputPoint", "InstanceObserver", "Layer", "Layers", "LayersObserver", "Loop", "Material", "Materials", "MaterialsObserver", "Menu", "Model", "ModelObserver", "OptionsManager", "OptionsProvider", "OptionsProviderObserver", "Page", "Pages", "PagesObserver", "PickHelper", "RenderingOptions", "RenderingOptionsObserver", "SectionPlane", "Selection", "SelectionObserver", "ShadowInfo", "ShadowInfoObserver", "Style", "Styles", "Text", "Texture", "TextureWriter", "Tools", "ToolsObserver", "UVHelper", "Vertex", "View", "ViewObserver"]
      

      TIG

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

        RenderingOptions got contants!! 😲

        One can actually use constants - that refer to integers (I assume indexes) to refer to options. That should be more efficient than strings.

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

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

          @thomthom said:

          RenderingOptions got contants!! 😲
          One can actually use constants - that refer to integers (I assume indexes) to refer to options. That should be more efficient than strings.

          Yes it's weird ?
          I can't really see what half of these do...

          TIG

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

            hm... yea - the names are odd. Might just be internal constants. Which would explain why they are not documented.

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

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

              Alright so I posted my results on the api but is it possible to edit it in case there is a mistake?(not that I've found one) Oh and it's posted as anonymous.... whatever. πŸ˜›

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

              Advertisement