Model.nodecreateatsurfparams#
- Model.nodecreateatsurfparams(surf_entity, u1, u2, ucount, v1, v2, vcount, mode, point_flag)#
Creates nodes or points at points on given surface for given parametric values.
- Parameters:
surf_entity (Entity) – The object describing the input surface entity. Valid entities are surfaces or faces.
u1 (double) – The lower bound of U parametric range. Must be within the range 0 to 1.
u2 (double) – The upper bound of U parametric range. Must be within the range 0 to 1.
ucount (int) – The number of nodes to create in U parametric direction. Must be ≥ 1. If the value is 1, then
u1is taken as U parametric value for created node.v1 (double) – The lower bound of V parametric range. Must be within the range 0 to 1.
v2 (double) – The upper bound of V parametric range. Must be within the range 0 to 1.
vcount (int) – The number of nodes to create in V parametric direction. Must be ≥ 1. If the value is 1, then
v1is taken as V parametric value for created node.mode (int) –
Specifies whether parameters are used relative to untrimmed surface parametric area or valid parametric area is scaled to visible region. Also used to specify whether created points must reside inside visible trimmed surface area. Valid values are:
0 - Untrimmed surface parametric area is used. Created nodes must be inside visible surface area.
1 - Surface parametric area is scaled to visible surface area. Created nodes must be inside visible surface area.
2 - Untrimmed surface parametric area is used. Created nodes can be outside visible surface area.
3 - Surface parametric area is scaled to visible surface area. Created nodes can be outside visible surface area.
point_flag (int) –
Parameter specifying whether nodes or points are created. Valid values are:
0 - Create nodes
1 - Create points
Example#
Create 12 nodes ( 3 nodes in U , 4 nodes in V ) on surface with ID 11 between the U locations 0.5 and 0.75 , and the V locations 0.1 and 0.3#import hm import hm.entities as ent model = hm.Model() model.nodecreateatsurfparams( surf_entity=ent.Surface(model, 11), u1=0.5, u2=0.75, ucount=3, v1=0.1, v2=0.3, vcount=4, mode=0, point_flag=0, )