Module: AMS::Group
- Defined in:
- Documentation/ams/group.rb
Overview
Class Method Summary collapse
-
.calc_centre_of_mass(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Geom::Point3d
Calculate group/component instance centre of mass from faces.
-
.copy(object, context = nil, recursive = true, transformation = nil) {|entity| ... } ⇒ Sketchup::Group?
Copy group/component instance without including the undesired entities.
-
.get_bounding_box_from_edges(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Geom::BoundingBox
Get group/component instance bounding box from edges.
-
.get_bounding_box_from_faces(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Geom::BoundingBox
Get group/component instance bounding box from faces.
-
.get_construction(object, recursive = true, transformation = nil) {|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, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Array<Geom::Point3d>>
Get group/component instance edges.
-
.get_entities(object) ⇒ Sketchup::Entities
Get group/component instance entities.
-
.get_faces(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Array<Geom::Point3d>>
Get group/component instance faces.
-
.get_polygons_from_faces(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Array<Geom::Point3d>>
Get group/component instance face triplets.
-
.get_triangular_mesh(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Geom::PolygonMesh
Get group/component instance triangular mesh.
-
.get_triangular_meshes(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Geom::PolygonMesh>
Get group/component instance triangular mesh collections.
-
.get_vertices_from_edges(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Geom::Point3d>
Get group/component instance edge vertices.
-
.get_vertices_from_faces(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Geom::Point3d>
Get group/component instance face vertices.
-
.get_vertices_from_faces2(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Array<Geom::Point3d>>
Get group/component instance face vertices collections.
Class Method Details
.calc_centre_of_mass(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Geom::Point3d
This method returns an improper centre of mass in some cases.
This function was revised in version 3.5.0.
Calculate group/component instance centre of mass from faces.
.copy(object, context = nil, recursive = true, transformation = nil) {|entity| ... } ⇒ Sketchup::Group?
Make sure to wrap this function with a start/commit operation to avoid polluting the undo stack.
The original group is not modified in any way.
Regardless of whether object
is a group or a component
instance, the resulting entity will always be a group. Same applies to
sub-groups and sub-component instances.
For copied faces:
-
Each is assigned its original front/back material.
-
Each is assigned to Layer0.
-
Attributes are not copied.
-
Casts/receives shadows and visibility state are not retained; they will depend on the parent group/component properties.
For copied edges:
-
Each is assigned its original soft/smooth options.
-
Each is assigned to Layer0.
-
Attributes are not copied.
-
Casts/receives shadows and visibility state are not retained; they will depend on the parent group/component properties.
For copied construction points and lines:
-
Each is assigned its original layer.
-
Attributes are not copied.
For copied group and sub-groups:
-
Each is assigned its original name, layer, material, visibility state, casts/receives shadows state, and transformation.
-
Attributes are not copied.
This function was revised in version 3.5.0.
Tiny faces with loops don't always replicate properly.
Copy group/component instance without including the undesired entities.
.get_bounding_box_from_edges(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Geom::BoundingBox
Get group/component instance bounding box from edges.
.get_bounding_box_from_faces(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Geom::BoundingBox
This function was revised in version 3.5.0.
Get group/component instance bounding box from faces.
.get_construction(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Geom::Point3d>
This function was revised in version 3.5.0.
Get group/component instance construction point and line positions.
.get_definition(object) ⇒ Sketchup::ComponentDefinition
Get group/component instance definition.
.get_edges(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Array<Geom::Point3d>>
This function was revised in version 3.5.0.
Get group/component instance edges.
.get_entities(object) ⇒ Sketchup::Entities
Get group/component instance entities.
.get_faces(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Array<Geom::Point3d>>
This function was revised in version 3.5.0.
Get group/component instance faces.
.get_polygons_from_faces(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Array<Geom::Point3d>>
This function was revised in version 3.5.0.
Get group/component instance face triplets.
.get_triangular_mesh(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Geom::PolygonMesh
This function was revised in version 3.5.0.
Get group/component instance triangular mesh.
.get_triangular_meshes(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Geom::PolygonMesh>
This function was revised in version 3.5.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, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Geom::Point3d>
This function was revised in version 3.5.0.
Get group/component instance edge vertices.
.get_vertices_from_faces(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Geom::Point3d>
This function was revised in version 3.5.0.
Get group/component instance face vertices.
.get_vertices_from_faces2(object, recursive = true, transformation = nil) {|entity| ... } ⇒ Array<Array<Geom::Point3d>>
This function was revised in version 3.5.0.
Get group/component instance face vertices collections.