Set a tetragon with lengths of 2.0 and 3.0 and 3 and 4 control points in each direction The weights of the control points (Wc) are optional.
Generate the NURBS surface with resolutions of 30 in both dimensions
Find the nearest point on the surface to a given point Finalize the NURBS surface object
Type | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|
integer | :: | i | ||||
integer | :: | id |
id of the nearest point |
|||
integer | :: | j | ||||
real(kind=rk), | allocatable | :: | nearest_Xg(:) |
Coordinates of the nearest point on the surface |
||
real(kind=rk), | allocatable | :: | nearest_Xt(:) |
Corresponding parametric coordinates of the nearest point |
||
real(kind=rk), | allocatable | :: | points(:,:) | |||
type(nurbs_surface) | :: | shape |
Declare a NURBS surface object |
|||
type(timer) | :: | t |