hi guyes
I create a group and add to group face
group1 = entities.add_group
face = group1.definition.entities.add_face(f[0], f[1], f[2], f[3])
Next I will rotate everything in this group
[X_AXIS, Y_AXIS].each { |axis|
if not face.normal.samedirection?(Z_AXIS)
if face.normal.perpendicular?(axis)
angle = face.normal.angle_between(axis)
angle = 180 - (angle * 180 / Math;;PI)
rotation = Geom;;Transformation.rotation(group1.bounds.center, axis, angle.degrees)
group1.entities.transform_entities(rotation, group1.entities.to_a)
end
end
}
Next I need to move everything to the origin of global coordinates. How to do it?
group1.transformation.origin have zero coordinats, but group1 is not at zero.
how to move a group or its contents to another location?