Model.surfaceaddpoint#
- Model.surfaceaddpoint(surfptr, x, y, z)#
Add a fixed point on a surface at the specified coordinates.
- Parameters:
surfptr (Entity) – The entity representing the surface.
x (double) – The X component of the coordinates of the point.
y (double) – The Y component of the coordinates of the point.
z (double) – The Z component of the coordinates of the point.
Note
The coordinates must be within tolerance of the surface. If the coordinates are within the geometry tolerance of an edge, a surface vertex is created. Otherwise, an interior fixed point is added to the surface.
Example#
Create a fixed point in the surface with ID 1 with coordinates ( 1.0,2.0,3.0 )#import hm import hm.entities as ent model = hm.Model() model.surfaceaddpoint(surfptr=ent.Surface(model, 1), x=1.0, y=2.0, z=3.0)