Skip to content

Commit eb1c908

Browse files
committed
SketchUp 2022.0
1 parent 34faee4 commit eb1c908

150 files changed

Lines changed: 2269 additions & 1000 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/sketchup-api-stubs/sketchup.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
require 'sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb'
6363
require 'sketchup-api-stubs/stubs/Sketchup/Classifications.rb'
6464
require 'sketchup-api-stubs/stubs/Sketchup/Color.rb'
65-
require 'sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb'
6665
require 'sketchup-api-stubs/stubs/Sketchup/Drawingelement.rb'
66+
require 'sketchup-api-stubs/stubs/Sketchup/ComponentDefinition.rb'
6767
require 'sketchup-api-stubs/stubs/Sketchup/ComponentInstance.rb'
6868
require 'sketchup-api-stubs/stubs/Sketchup/Console.rb'
6969
require 'sketchup-api-stubs/stubs/Sketchup/ConstructionLine.rb'
@@ -79,6 +79,7 @@
7979
require 'sketchup-api-stubs/stubs/Sketchup/Edge.rb'
8080
require 'sketchup-api-stubs/stubs/Sketchup/EdgeUse.rb'
8181
require 'sketchup-api-stubs/stubs/Sketchup/Entities.rb'
82+
require 'sketchup-api-stubs/stubs/Sketchup/EntitiesBuilder.rb'
8283
require 'sketchup-api-stubs/stubs/Sketchup/EntitiesObserver.rb'
8384
require 'sketchup-api-stubs/stubs/Sketchup/ExtensionsManager.rb'
8485
require 'sketchup-api-stubs/stubs/Sketchup/Face.rb'

lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# Bounding boxes are three-dimensional boxes (eight corners), aligned with the

lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The bounds2d class represents an axis aligned bounding box represented by

lib/sketchup-api-stubs/stubs/Geom/LatLong.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The LatLong class contains various methods for creating and manipulating

lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The OrientedBounds2d class is a bounding box represented by four

lib/sketchup-api-stubs/stubs/Geom/Point2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The {Geom::Point2d} class allows you to work with a point in 2D space.

lib/sketchup-api-stubs/stubs/Geom/Point3d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The Point3d class allows you to work with a point in 3D space.

lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The {#Geom::PolygonMesh} class contains methods to create polygon mesh
@@ -22,6 +22,14 @@
2222
# group = entities.add_group
2323
# group.entities.add_faces_from_mesh(mesh)
2424
#
25+
# @note As of SketchUp 2022.0 the new {Sketchup::EntitiesBuilder} interface
26+
# can be used to generate bulk geometry. It has similar performance as
27+
# {Geom::PolygonMesh}, but with similar degree of per-entity control as
28+
# {Sketchup::Entities}.
29+
#
30+
# @see file:pages/generating_geometry.md
31+
# Guide on Generating Geometry
32+
#
2533
# @version SketchUp 6.0
2634
class Geom::PolygonMesh
2735

@@ -42,13 +50,16 @@ class Geom::PolygonMesh
4250

4351
# The {#add_point} method is used to add a point to the mesh.
4452
#
45-
# The index can be used for creating polygons.
53+
# The returned index can be used for creating polygons.
4654
#
4755
# @example
4856
# mesh = Geom::PolygonMesh.new
4957
# point = Geom::Point3d.new(0, 1, 2)
5058
# index = mesh.add_point(point)
5159
#
60+
# @note In SketchUp 2021.1 this method was improved to be faster.
61+
# See {#initialize} for details.
62+
#
5263
# @param [Geom::Point3d] point
5364
#
5465
# @return [Integer] the index in the mesh for the point
@@ -57,10 +68,13 @@ class Geom::PolygonMesh
5768
def add_point(point)
5869
end
5970

60-
# The +add_polygon+ method is used for adding a polygon to a
61-
# PolygonMesh. All variations of this method require at least 3 elements
71+
# The {#add_polygon} method is used for adding a polygon to a
72+
# {Geom::PolygonMesh}. All variations of this method require at least 3 elements
6273
# to define a polygon, although more may be given.
6374
#
75+
# @note In SketchUp 2021.1 this method was improved to be faster.
76+
# See {#initialize} for details.
77+
#
6478
# @overload add_polygon(index, index, index, ...)
6579
#
6680
# Adds a polygon from a list of the mesh's vertex indices.

lib/sketchup-api-stubs/stubs/Geom/Transformation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# Transformations are a standard construct in the 3D world for representing

lib/sketchup-api-stubs/stubs/Geom/Transformation2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2021 Trimble Inc.
1+
# Copyright:: Copyright 2022 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
#

0 commit comments

Comments
 (0)