sketchup-api-stubs 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/SketchUp/Geom/BoundingBox.rb +335 -0
  3. data/SketchUp/Geom/LatLong.rb +123 -0
  4. data/SketchUp/Geom/Point3d.rb +643 -0
  5. data/SketchUp/Geom/PolygonMesh.rb +478 -0
  6. data/SketchUp/Geom/Transformation.rb +476 -0
  7. data/SketchUp/Geom/UTM.rb +135 -0
  8. data/SketchUp/Geom/Vector3d.rb +684 -0
  9. data/SketchUp/Sketchup/Animation.rb +137 -0
  10. data/SketchUp/Sketchup/AppObserver.rb +157 -0
  11. data/SketchUp/Sketchup/ArcCurve.rb +209 -0
  12. data/SketchUp/Sketchup/AttributeDictionaries.rb +146 -0
  13. data/SketchUp/Sketchup/AttributeDictionary.rb +280 -0
  14. data/SketchUp/Sketchup/Axes.rb +149 -0
  15. data/SketchUp/Sketchup/Behavior.rb +338 -0
  16. data/SketchUp/Sketchup/Camera.rb +594 -0
  17. data/SketchUp/Sketchup/ClassificationSchema.rb +63 -0
  18. data/SketchUp/Sketchup/Classifications.rb +118 -0
  19. data/SketchUp/Sketchup/Color.rb +291 -0
  20. data/SketchUp/Sketchup/ComponentDefinition.rb +562 -0
  21. data/SketchUp/Sketchup/ComponentInstance.rb +597 -0
  22. data/SketchUp/Sketchup/Console.rb +78 -0
  23. data/SketchUp/Sketchup/ConstructionLine.rb +257 -0
  24. data/SketchUp/Sketchup/ConstructionPoint.rb +32 -0
  25. data/SketchUp/Sketchup/Curve.rb +196 -0
  26. data/SketchUp/Sketchup/DefinitionList.rb +312 -0
  27. data/SketchUp/Sketchup/DefinitionObserver.rb +73 -0
  28. data/SketchUp/Sketchup/DefinitionsObserver.rb +102 -0
  29. data/SketchUp/Sketchup/Dimension.rb +167 -0
  30. data/SketchUp/Sketchup/DimensionLinear.rb +232 -0
  31. data/SketchUp/Sketchup/DimensionObserver.rb +38 -0
  32. data/SketchUp/Sketchup/DimensionRadial.rb +87 -0
  33. data/SketchUp/Sketchup/Drawingelement.rb +400 -0
  34. data/SketchUp/Sketchup/Edge.rb +517 -0
  35. data/SketchUp/Sketchup/EdgeUse.rb +213 -0
  36. data/SketchUp/Sketchup/Entities.rb +1011 -0
  37. data/SketchUp/Sketchup/EntitiesObserver.rb +125 -0
  38. data/SketchUp/Sketchup/Entity.rb +522 -0
  39. data/SketchUp/Sketchup/EntityObserver.rb +59 -0
  40. data/SketchUp/Sketchup/ExtensionsManager.rb +129 -0
  41. data/SketchUp/Sketchup/Face.rb +737 -0
  42. data/SketchUp/Sketchup/FrameChangeObserver.rb +104 -0
  43. data/SketchUp/Sketchup/Group.rb +705 -0
  44. data/SketchUp/Sketchup/Http.rb +27 -0
  45. data/SketchUp/Sketchup/Http/Request.rb +285 -0
  46. data/SketchUp/Sketchup/Http/Response.rb +62 -0
  47. data/SketchUp/Sketchup/Image.rb +393 -0
  48. data/SketchUp/Sketchup/Importer.rb +192 -0
  49. data/SketchUp/Sketchup/InputPoint.rb +393 -0
  50. data/SketchUp/Sketchup/InstanceObserver.rb +82 -0
  51. data/SketchUp/Sketchup/InstancePath.rb +297 -0
  52. data/SketchUp/Sketchup/Layer.rb +240 -0
  53. data/SketchUp/Sketchup/Layers.rb +235 -0
  54. data/SketchUp/Sketchup/LayersObserver.rb +136 -0
  55. data/SketchUp/Sketchup/Licensing.rb +47 -0
  56. data/SketchUp/Sketchup/Licensing/ExtensionLicense.rb +88 -0
  57. data/SketchUp/Sketchup/Loop.rb +141 -0
  58. data/SketchUp/Sketchup/Material.rb +384 -0
  59. data/SketchUp/Sketchup/Materials.rb +283 -0
  60. data/SketchUp/Sketchup/MaterialsObserver.rb +141 -0
  61. data/SketchUp/Sketchup/Menu.rb +97 -0
  62. data/SketchUp/Sketchup/Model.rb +1459 -0
  63. data/SketchUp/Sketchup/ModelObserver.rb +356 -0
  64. data/SketchUp/Sketchup/OptionsManager.rb +135 -0
  65. data/SketchUp/Sketchup/OptionsProvider.rb +277 -0
  66. data/SketchUp/Sketchup/OptionsProviderObserver.rb +58 -0
  67. data/SketchUp/Sketchup/Page.rb +636 -0
  68. data/SketchUp/Sketchup/Pages.rb +349 -0
  69. data/SketchUp/Sketchup/PagesObserver.rb +76 -0
  70. data/SketchUp/Sketchup/PickHelper.rb +457 -0
  71. data/SketchUp/Sketchup/RegionalSettings.rb +43 -0
  72. data/SketchUp/Sketchup/RenderingOptions.rb +337 -0
  73. data/SketchUp/Sketchup/RenderingOptionsObserver.rb +44 -0
  74. data/SketchUp/Sketchup/SectionPlane.rb +88 -0
  75. data/SketchUp/Sketchup/Selection.rb +470 -0
  76. data/SketchUp/Sketchup/SelectionObserver.rb +115 -0
  77. data/SketchUp/Sketchup/Set.rb +253 -0
  78. data/SketchUp/Sketchup/ShadowInfo.rb +257 -0
  79. data/SketchUp/Sketchup/ShadowInfoObserver.rb +57 -0
  80. data/SketchUp/Sketchup/Style.rb +77 -0
  81. data/SketchUp/Sketchup/Styles.rb +204 -0
  82. data/SketchUp/Sketchup/Text.rb +241 -0
  83. data/SketchUp/Sketchup/Texture.rb +211 -0
  84. data/SketchUp/Sketchup/TextureWriter.rb +237 -0
  85. data/SketchUp/Sketchup/Tool.rb +808 -0
  86. data/SketchUp/Sketchup/Tools.rb +120 -0
  87. data/SketchUp/Sketchup/ToolsObserver.rb +154 -0
  88. data/SketchUp/Sketchup/UVHelper.rb +61 -0
  89. data/SketchUp/Sketchup/Vertex.rb +143 -0
  90. data/SketchUp/Sketchup/View.rb +965 -0
  91. data/SketchUp/Sketchup/ViewObserver.rb +40 -0
  92. data/SketchUp/UI/Command.rb +307 -0
  93. data/SketchUp/UI/HtmlDialog.rb +346 -0
  94. data/SketchUp/UI/Notification.rb +229 -0
  95. data/SketchUp/UI/Toolbar.rb +243 -0
  96. data/SketchUp/UI/WebDialog.rb +623 -0
  97. data/SketchUp/_top_level.rb +193 -0
  98. data/SketchUp/array.rb +593 -0
  99. data/SketchUp/geom.rb +231 -0
  100. data/SketchUp/languagehandler.rb +92 -0
  101. data/SketchUp/length.rb +210 -0
  102. data/SketchUp/numeric.rb +249 -0
  103. data/SketchUp/sketchup.rb +1290 -0
  104. data/SketchUp/sketchupextension.rb +355 -0
  105. data/SketchUp/string.rb +24 -0
  106. data/SketchUp/ui.rb +637 -0
  107. metadata +176 -0
@@ -0,0 +1,120 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The Tools class contains methods to manipulate a collection of SketchUp
5
+ # tools. You access this collection by calling the Model.tools method.
6
+ #
7
+ # @example
8
+ # tools = Sketchup.active_model.tools
9
+ #
10
+ # @version SketchUp 6.0
11
+ class Sketchup::Tools
12
+
13
+ # Instance Methods
14
+
15
+ # The active_tool_id method is used to retrieve the active tool's id.
16
+ #
17
+ # @example
18
+ # tools = Sketchup.active_model.tools
19
+ # id = tools.active_tool_id
20
+ #
21
+ # @return id - the active tool's id.
22
+ #
23
+ # @version SketchUp 6.0
24
+ def active_tool_id
25
+ end
26
+
27
+ # The active_tool_name method is used to retrieve the active tool's name.
28
+ #
29
+ # @example
30
+ # tools = Sketchup.active_model.tools
31
+ # if tools.active_tool_id.equal? 0
32
+ # puts "Tools collection is empty"
33
+ # else
34
+ # name = tools.active_tool_name
35
+ # end
36
+ #
37
+ # @return name = the active tool's name.
38
+ #
39
+ # @version SketchUp 6.0
40
+ def active_tool_name
41
+ end
42
+
43
+ # The add_observer method is used to add an observer to the current object.
44
+ #
45
+ # @example
46
+ # tools = Sketchup.active_model.tools
47
+ # observer = Sketchup::ToolsObserver.new
48
+ # status = tools.add_observer observer
49
+ #
50
+ # @param observer
51
+ # An observer.
52
+ #
53
+ # @return status - true if successful, false if unsuccessful.
54
+ #
55
+ # @version SketchUp 6.0
56
+ def add_observer(observer)
57
+ end
58
+
59
+ # The model method is used to get the model associated with this tools object.
60
+ #
61
+ # @example
62
+ # tools = Sketchup.active_model.tools
63
+ # model = tools.model
64
+ #
65
+ # @return model - the Model object associated with this tools
66
+ # collection.
67
+ #
68
+ # @version SketchUp 6.0
69
+ def model
70
+ end
71
+
72
+ # The pop_tool method is used to pop the last pushed tool on the tool stack.
73
+ #
74
+ # @example
75
+ # tools = Sketchup.active_model.tools
76
+ # tool = tools.pop_tool
77
+ #
78
+ # @return the last pushed Tool object, if it is a Ruby tool. If a
79
+ # native tool is active, selects the default native tool
80
+ # and returns nil.
81
+ #
82
+ # @version SketchUp 6.0
83
+ def pop_tool
84
+ end
85
+
86
+ # The push_tool method is used to push (aka activate) a user-defined tool.
87
+ # See the Tool interface for details on creating your own SketchUp tool.
88
+ #
89
+ # @example
90
+ # tools = Sketchup.active_model.tools
91
+ # status = tools.push_tool tool
92
+ #
93
+ # @param tool
94
+ # A user.
95
+ #
96
+ # @return status - true if successful, false if unsuccessful.
97
+ #
98
+ # @version SketchUp 6.0
99
+ def push_tool(tool)
100
+ end
101
+
102
+ # The remove_observer method is used to remove an observer from the current
103
+ # object.
104
+ #
105
+ # @example
106
+ # tools = Sketchup.active_model.tools
107
+ # observer = Sketchup::ToolsObserver.new
108
+ # tools.add_observer observer
109
+ # status = tools.remove_observer observer
110
+ #
111
+ # @param observer
112
+ # An observer.
113
+ #
114
+ # @return true if successful, false if unsuccessful.
115
+ #
116
+ # @version SketchUp 6.0
117
+ def remove_observer(observer)
118
+ end
119
+
120
+ end
@@ -0,0 +1,154 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # This observer interface is implemented to react to tool events. To implement
5
+ # this observer, create a Ruby class of this type, override the desired
6
+ # methods, and add an instance of the observer to the {Sketchup::Tools} object.
7
+ #
8
+ # Some of the code below mentions +tool_names+ and +tool_ids+. Here is a list
9
+ # of the common tool IDs and names:
10
+ #
11
+ # - +21013+ = 3DTextTool
12
+ # - +21065+ = ArcTool
13
+ # - +10523+ = CameraDollyTool
14
+ # - +10508+ = CameraOrbitTool
15
+ # - +10525+ = CameraPanTool
16
+ # - +21169+ = PositionCameraTool
17
+ # - +10520+ = CameraWalkTool
18
+ # - +10509+ = CameraZoomTool
19
+ # - +10526+ = CameraZoomWindowTool
20
+ # - +21096+ = CircleTool
21
+ # - +21013+ = ComponentTool
22
+ # - +21126+ = ComponentCSTool
23
+ # - +21410+ = DimensionTool
24
+ # - +21019+ = EraseTool
25
+ # - +21031+ = FreehandTool
26
+ # - +21525+ = ExtrudeTool
27
+ # - +21126+ = SketchCSTool
28
+ # - +21048+ = MoveTool
29
+ # - +21024+ = MeasureTool
30
+ # - +21100+ = OffsetTool
31
+ # - +21074+ = PaintTool
32
+ # - +21013+ = PasteTool
33
+ # - +21095+ = PolyTool
34
+ # - +21515+ = PositionTextureTool
35
+ # - +21041+ = PushPullTool
36
+ # - +21057+ = ProtractorTool
37
+ # - +21094+ = RectangleTool
38
+ # - +21129+ = RotateTool
39
+ # - +21236+ = ScaleTool
40
+ # - +21022+ = SelectionTool
41
+ # - +21337+ = SectionPlaneTool
42
+ # - +21020+ = SketchTool
43
+ # - +21405+ = TextTool
44
+ #
45
+ # @example
46
+ # # This is an example of an observer that watches tool interactions.
47
+ # class MyToolsObserver < Sketchup::ToolsObserver
48
+ # def onActiveToolChanged(tools, tool_name, tool_id)
49
+ # puts "onActiveToolChanged: #{tool_name}"
50
+ # end
51
+ # end
52
+ #
53
+ # # Attach the observer.
54
+ # Sketchup.active_model.tools.add_observer(MyToolsObserver.new)
55
+ #
56
+ # @version SketchUp 6.0
57
+ class Sketchup::ToolsObserver
58
+
59
+ # Instance Methods
60
+
61
+ # Once you subclass {Sketchup::ToolsObserver} with your unique class, you can
62
+ # override the {#onActiveToolChanged} method to receive tool change
63
+ # notifications.
64
+ #
65
+ # @example
66
+ # def onActiveToolChanged(tools, tool_name, tool_id)
67
+ # tool_name = fix_mac_tool_name(tool_name)
68
+ # puts "onActiveToolChanged: #{tool_name}"
69
+ # end
70
+ #
71
+ # # Returns the "correct" tool name to account for mac API differences.
72
+ # #
73
+ # # Args:
74
+ # # tool_name The tool name to fix
75
+ # #
76
+ # # Returns
77
+ # # string corrected tool name
78
+ # def fix_mac_tool_name(tool_name)
79
+ # if tool_name == "eTool"
80
+ # tool_name = "ScaleTool"
81
+ # elsif tool_name == "ool"
82
+ # tool_name = "MoveTool"
83
+ # elsif tool_name == "onentCSTool"
84
+ # tool_name = "ComponentCSTool"
85
+ # elsif tool_name == "PullTool"
86
+ # tool_name = "PushPullTool"
87
+ # end
88
+ # return tool_name
89
+ # end
90
+ #
91
+ # @note In SketchUp 6 and SketchUp 7.0, tool names on the Mac have some of
92
+ # their first characters truncated. For instance, on Windows, a tool is
93
+ # +"CameraOrbit"+. On the Mac, is comes across as +"raOrbit"+. Therefore,
94
+ # use the +tool_id+ to keep track of which tool you need to watch for, or use
95
+ # logic that corrects for the error. There is an example method of one way to
96
+ # do this shown below. (This example is not a comprehensive list of the tool
97
+ # names.)
98
+ #
99
+ # @param [Integer] tool_id
100
+ # The ID of the tool. This is a predefined number
101
+ # unique to a given tool. For example, the Materials Browser is tool_id
102
+ # 21074.
103
+ #
104
+ # @param [String] tool_name
105
+ # The name of the tool.
106
+ #
107
+ # @param [Sketchup::Tools] tools
108
+ # A Tools object.
109
+ #
110
+ # @return [nil]
111
+ #
112
+ # @version SketchUp 6.0
113
+ def onActiveToolChanged(tools, tool_name, tool_id)
114
+ end
115
+
116
+ # The {#onToolStateChanged} method is called each time the user performs an
117
+ # action with a tool. The actual state that is returned is an internal number
118
+ # that varies tool to tool. If you want to watch existing tools for every
119
+ # interaction, you will need to experiment with the tool state to determine
120
+ # which states you care about. There is little consistency tool to tool.
121
+ #
122
+ # @example
123
+ # def onToolStateChanged(tools, tool_name, tool_id, tool_state)
124
+ # puts "onToolStateChanged: #{tool_name}:#{tool_state}"
125
+ # end
126
+ #
127
+ # @note In SketchUp 6 and SketchUp 7, tool names on the Mac have their first
128
+ # few characters truncated. For instance, on Windows, a tool is
129
+ # +"CameraOrbit".+ On the Mac, is comes across as +"raOrbit"+. Therefore,
130
+ # use the tool_id to keep track of which tool you need to watch for, or use
131
+ # logic that corrects for the error. This bug was fixed in SketchUp 8.0.
132
+ #
133
+ # @param [Integer] tool_state
134
+ # A number identifying the state the tool just
135
+ # entered.
136
+ #
137
+ # @param [Sketchup::Tools] tools
138
+ # A Tools object.
139
+ #
140
+ # @param [Integer] tool_id
141
+ # The ID of the tool. This is a predefined number
142
+ # unique to a given tool. For example, the Materials Browser is tool_id
143
+ # 21074.
144
+ #
145
+ # @param [String] tool_name
146
+ # The name of the tool.
147
+ #
148
+ # @return [nil]
149
+ #
150
+ # @version SketchUp 6.0
151
+ def onToolStateChanged(tools, tool_name, tool_id, tool_state)
152
+ end
153
+
154
+ end
@@ -0,0 +1,61 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The UV Helper class contains methods allowing you to determine the location
5
+ # (UV coordinates) of a texture on a face. This class is particularly useful
6
+ # in determining how textures that have been manipulated using the Texture
7
+ # Tweaker should appear when exported to another file type
8
+ #
9
+ # Use the Face.get_UVHelper method to create a UVHelper for a given face.
10
+ # See the TextureWriter class as well.
11
+ #
12
+ # @version SketchUp 6.0
13
+ class Sketchup::UVHelper
14
+
15
+ # Instance Methods
16
+
17
+ # The get_back_UVQ method is used to get the UV coordinates for the back of a
18
+ # face.
19
+ #
20
+ # @example
21
+ # uv_helper = face.get_UVHelper true, true, my_texture_writer
22
+ # face.outer_loop.vertices.each do |vert|
23
+ # uvq = uv_help.get_back_UVQ(vert.position)
24
+ # puts "u=" + uvq.x.to_s + " v=" + uvq.y.to_s
25
+ # end
26
+ #
27
+ # @param point
28
+ # A Point3d object containing one of the 3D vertexes of
29
+ # the face.
30
+ #
31
+ # @return point - a Point3d containing the UV coordinates where
32
+ # the X value is the U value, the Y value is the V value
33
+ # and the Z value is a Q value (which is not used).
34
+ #
35
+ # @version SketchUp 6.0
36
+ def get_back_UVQ(point)
37
+ end
38
+
39
+ # The get_front_UVQ method is used to get the UV coordinates for a front of a
40
+ # face.
41
+ #
42
+ # @example
43
+ # uv_helper = face.get_UVHelper true, true, my_texture_writer
44
+ # face.outer_loop.vertices.each do |vert|
45
+ # uvq = uv_helper.get_front_UVQ(vert.position)
46
+ # puts "u=" + uvq.x.to_s + " v=" + uvq.y.to_s
47
+ # end
48
+ #
49
+ # @param point
50
+ # A Point3d object containing one of the 3D vertexes of
51
+ # the face.
52
+ #
53
+ # @return point - a Point3d containing the UV coordinates where
54
+ # the X value is the U value, the Y value is the V value
55
+ # and the Z value is a Q value (which is not used).
56
+ #
57
+ # @version SketchUp 6.0
58
+ def get_front_UVQ(point)
59
+ end
60
+
61
+ end
@@ -0,0 +1,143 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # A Vertex. A Vertex represents the end of an Edge or a point inside a Face.
5
+ #
6
+ # @version SketchUp 6.0
7
+ class Sketchup::Vertex < Sketchup::Entity
8
+
9
+ # Instance Methods
10
+
11
+ # The common_edge method is used to find a common edge that is defined by this
12
+ # vertex and another vertex
13
+ #
14
+ # @example
15
+ # edge = entities[0]
16
+ # # returns array of vertices that make up the line
17
+ # verticies = edge.vertices
18
+ # vertex1 = verticies[0]
19
+ # vertex2 = verticies[1]
20
+ # edge = vertex1.common_edge vertex2
21
+ # if (edge)
22
+ # UI.messagebox edge
23
+ # else
24
+ # UI.messagebox "Failure"
25
+ # end
26
+ #
27
+ # @param vertex2
28
+ # A Vertex object.
29
+ #
30
+ # @return edge - an Edge object common to both vertices if
31
+ # successful. Returns nil if there is no edge between the
32
+ # two vertices.
33
+ #
34
+ # @version SketchUp 6.0
35
+ def common_edge(vertex2)
36
+ end
37
+
38
+ # The curve_interior? method is used to determine if this vertex is on the
39
+ # interior of a Curve.
40
+ #
41
+ # @example
42
+ # edge = entities[0]
43
+ # # returns array of vertices that make up the line
44
+ # verticies = edge.vertices
45
+ # vertex1 = verticies[0]
46
+ # status = vertex1.curve_interior?
47
+ # if (status)
48
+ # UI.messagebox status
49
+ # else
50
+ # #returns nil if vertex is not on interior of a Curve
51
+ # UI.messagebox "Failure"
52
+ # end
53
+ #
54
+ # @return status - true if it is used by exactly two edges which
55
+ # are both part of the same curve.
56
+ #
57
+ # @return [Boolean]
58
+ #
59
+ # @version SketchUp 6.0
60
+ def curve_interior?
61
+ end
62
+
63
+ # The edges method is used to retrieve an Array of edges that use the Vertex.
64
+ #
65
+ # @example
66
+ # edge = entities[0]
67
+ # # Returns array of vertices that make up the line.
68
+ # verticies = edge.vertices
69
+ # vertex1 = verticies[0]
70
+ # edges = vertex1.edges
71
+ #
72
+ # @return edges - an Array of edge objects if successful
73
+ #
74
+ # @version SketchUp 6.0
75
+ def edges
76
+ end
77
+
78
+ # The faces method is used to retrieve an Array of faces that use the vertex.
79
+ #
80
+ # @example
81
+ # edge = entities[0]
82
+ # # Returns array of vertices that make up the line.
83
+ # verticies = edge.vertices
84
+ # vertex1 = verticies[0]
85
+ # faces = vertex1.faces
86
+ #
87
+ # @return faces - an Array of faces that use the vertex if
88
+ # successful
89
+ #
90
+ # @version SketchUp 6.0
91
+ def faces
92
+ end
93
+
94
+ # The loops method is used to retrieve an Array of loops that use the vertex.
95
+ #
96
+ # @example
97
+ # edge = entities[0]
98
+ # # Returns array of vertices that make up the line.
99
+ # verticies = edge.vertices
100
+ # vertex1 = verticies[0]
101
+ # loops = vertex1.loops
102
+ #
103
+ # @return loops - an Array of loops that use the vertex if
104
+ # successful
105
+ #
106
+ # @version SketchUp 6.0
107
+ def loops
108
+ end
109
+
110
+ # The position method is used to retrieve the Point3d position of a vertex.
111
+ #
112
+ # @example
113
+ # edge = entities[0]
114
+ # # Returns array of vertices that make up the line.
115
+ # verticies = edge.vertices
116
+ # vertex1 = verticies[0]
117
+ # position = vertex1.position
118
+ #
119
+ # @return point - a Point3d object representing the position of
120
+ # the vertex if successful
121
+ #
122
+ # @version SketchUp 6.0
123
+ def position
124
+ end
125
+
126
+ # The used_by? method is used to determine if the Vertex is used by a given
127
+ # Edge or Face.
128
+ #
129
+ # @example
130
+ # used = vertex1.used_by? my_face
131
+ #
132
+ # @param face_or_edge
133
+ # A Face or Edge ot test against.
134
+ #
135
+ # @return used - true if the Vertex is used in the given entity.
136
+ #
137
+ # @return [Boolean]
138
+ #
139
+ # @version SketchUp 6.0
140
+ def used_by?(face_or_edge)
141
+ end
142
+
143
+ end