Method: Geom::PolygonMesh#point_at

Defined in:
lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb

#point_at(index) ⇒ Geom::Point3d?

Note:

Index starts at 1.

The #point_at method is used to retrieve the point at a specific index in the mesh.

Examples:

mesh = Geom::PolygonMesh.new
point1 = Geom::Point3d.new(0, 1, 2)
point2 = Geom::Point3d.new(10, 20, 30)
mesh.add_point(point1)
mesh.add_point(point2)
point_from_index = mesh.point_at(1)

Parameters:

  • index (Integer)

    The index in the mesh for the point to be retrieved

Returns:

Version:

  • SketchUp 6.0



237
238
# File 'lib/sketchup-api-stubs/stubs/Geom/PolygonMesh.rb', line 237

def point_at(index)
end