DVmesh_extent


Synopsis

Computes the extent of a mesh by taking the mesh's min_vec and max_vec and applying the mesh's transform.

module DVmesh_extent {

     Grid+Iparam &in {

           nnodes+req;

     };

     float+Oparam min_ext[3];

     float+Oparam max_ext[3];

     float+Oparam extent;

     method+notify_val+notify_inst upd_compute_extent = "DVmesh_extent_update";

};

Description

 

DVmesh_extent computes the extent of a mesh by taking the initial min_vec and max_vec and applying the mesh's transform. The resulting vectors are put in the output parameters min_ext and max_ext. The magnitude of the vector distance between min_ext and max_ext is computed and put in the extent output parameter.

Input

in

Grid. The input mesh does not need to be of type mesh, but the input must have both a grid and a transform.

 

Output

Max_ext

Float. Returns the maximum extent.

Min_ext

Float. Returns the minimum extent

ext

Float. Returns the extent.

Files

v/dv.v