Module: AMS::Group
- Defined in:
- docs/ams/group.rb
Overview
Class Method Summary collapse
-
.calc_centre_of_mass(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Geom::Point3d
Calculate group/component-instance centre of mass from faces.
-
.copy(object, context, transformation = nil, recurse = true) {|sub_entity| ... } ⇒ Sketchup::Group, ...
Copy group/component-instance without including the undesired entities.
-
.get_bounding_box_from_edges(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Geom::BoundingBox
Compute group/component-instance axes-aligned bounding-box from edges.
-
.get_bounding_box_from_faces(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Geom::BoundingBox
Compute group/component-instance axes-aligned bounding-box from faces.
-
.get_construction(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Geom::Point3d>
Get group/component-instance construction point and line positions.
-
.get_definition(object) ⇒ Sketchup::ComponentDefinition
Get group/component instance definition.
-
.get_edges(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Array<Geom::Point3d>>
Get group/component-instance edges.
-
.get_entities(object) ⇒ Sketchup::Entities
Get group/component instance entities.
-
.get_faces(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Array<Geom::Point3d>>
Get group/component-instance faces.
-
.get_polygons_from_faces(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Array<Geom::Point3d>>
Get group/component-instance face triplets.
-
.get_triangular_mesh(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Geom::PolygonMesh
Get group/component-instance triangular mesh.
-
.get_triangular_meshes(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Geom::PolygonMesh>
Get group/component-instance triangular mesh collections.
-
.get_vertices_from_edges(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Geom::Point3d>
Get group/component-instance edge vertices.
-
.get_vertices_from_faces(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Geom::Point3d>
Get group/component-instance face vertices.
-
.get_vertices_from_faces2(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Array<Geom::Point3d>>
Get group/component-instance face vertices collections.
-
.split(object, point, normal, context, transformation = nil, recurse = true) {|sub_entity| ... } ⇒ Array<Sketchup::Group, Sketchup::ComponentInstance, nil>
Split group/component-instance at plane.
Class Method Details
.calc_centre_of_mass(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Geom::Point3d
This method only works with convex groups.
This function was revised in version 3.6.0.
Calculate group/component-instance centre of mass from faces.
.copy(object, context, transformation = nil, recurse = true) {|sub_entity| ... } ⇒ Sketchup::Group, ...
This function was revised in version 3.6.0.
Make sure to wrap this function with a start/commit operation to avoid polluting the undo stack.
The original object
is not modified in any way.
If a block is passed, copied object is made unique.
The main, copied group is assigned its original name, layer, material, visibility state, casts/receives shadows state; attributes are not copied.
Copy group/component-instance without including the undesired entities.
.get_bounding_box_from_edges(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Geom::BoundingBox
This function was revised in version 3.6.0.
Compute group/component-instance axes-aligned bounding-box from edges.
.get_bounding_box_from_faces(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Geom::BoundingBox
This function was revised in version 3.6.0.
Compute group/component-instance axes-aligned bounding-box from faces.
.get_construction(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Geom::Point3d>
This function was revised in version 3.6.0.
Get group/component-instance construction point and line positions.
.get_definition(object) ⇒ Sketchup::ComponentDefinition
Get group/component instance definition.
.get_edges(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Array<Geom::Point3d>>
This function was revised in version 3.6.0.
Get group/component-instance edges.
.get_entities(object) ⇒ Sketchup::Entities
Get group/component instance entities.
.get_faces(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Array<Geom::Point3d>>
This function was revised in version 3.6.0.
Get group/component-instance faces.
.get_polygons_from_faces(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Array<Geom::Point3d>>
This function was revised in version 3.6.0.
Get group/component-instance face triplets.
.get_triangular_mesh(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Geom::PolygonMesh
This function was revised in version 3.6.0.
Get group/component-instance triangular mesh.
.get_triangular_meshes(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Geom::PolygonMesh>
This function was revised in version 3.6.0.
Get group/component-instance triangular mesh collections. Each sub-group, sub-component, a collection of connected faces is reserved its own mesh.
.get_vertices_from_edges(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Geom::Point3d>
This function was revised in version 3.6.0.
Get group/component-instance edge vertices.
.get_vertices_from_faces(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Geom::Point3d>
This function was revised in version 3.6.0.
Get group/component-instance face vertices.
.get_vertices_from_faces2(object, recurse = true, transformation = nil) {|sub_entity| ... } ⇒ Array<Array<Geom::Point3d>>
This function was revised in version 3.6.0.
Get group/component-instance face vertices collections.
.split(object, point, normal, context, transformation = nil, recurse = true) {|sub_entity| ... } ⇒ Array<Sketchup::Group, Sketchup::ComponentInstance, nil>
Make sure to wrap this function with a start/commit operation to avoid polluting the undo stack.
The original object
is not modified in any way.
Copied groups are assigned their original name, layer, material, visibility state, casts/receives shadows state; attributes are not copied.
Split group/component-instance at plane.