Model.createcirclefrompointplane#
- Model.createcirclefrompointplane(entitylist, plane_normal, plane_base, angle, offset)#
Creates a circle or arc by spinning a point about the normal vector of a plane.
- Parameters:
entitylist (EntityList) – A list containing the node entity objects to be spun. A circle or arc is created for each node in the list.
plane_normal (hwTriple) – The hwTriple object defining the plane normal components defining the circle normal. User can also supply a Python list of three doubles. The center of each circle is located at the base of the plane.
plane_base (hwTriple) – The hwTriple object defining the base point components of the plane defining the circle normal. The center of each circle is located at the base of the plane. User can also supply a Python list of three doubles.
angle (double) – The angle of the arc. To create a circle, set to 360.
offset (double) – Sets the starting offset for an arc.
Example#
Create a circle by spinning node with ID 18 in the plane whose normal is defined by (0.0, 0.0, 1.0) with base (0.0, 0.0, 0.0)#import hm import hm.entities as ent model = hm.Model() model.createcirclefrompointplane( entitylist=[ent.Node(model, 18)], plane_normal=[0.0, 0.0, 1.0], plane_base=[0.0, 0.0, 0.0], angle=360.0, offset=0.0, )