MeshClosestResult (object)

MeshClosestResult MeshClosestResult MeshClosestResult ClosestResult ClosestResult MeshClosestResult->ClosestResult

Members

Vec3 position  
Vec3 scaling  
Boolean hasScaling  
GeometryLocation location  
Ref<PolygonMeshSpatialQueryCache> queryCache  

Methods

  MeshClosestResult ( in MeshClosestResult other )
  MeshClosestResult ( in Ref<PolygonMeshSpatialQueryCache> queryCache )
  MeshClosestResult ()
MeshClosestResult clone ? ()
Boolean compareAndUpdate ! ( in Size objectIndex, out Scalar maxScaledSquaredDistance )
  copyResultFrom ! ( in Ref<ClosestResult> other )
Boolean getClosestPolygonLocation ! ( in Size polygonIndex, in Ref<Vec3_dAttribute> pos_dAttr, in Ref<Vec3Attribute> posAttr, out Scalar maxScaledSquaredDistance )
  reset ! ( in Vec3 position, in Vec3 scaling, in Boolean hasScaling )

Methods in detail

MeshClosestResult ( in MeshClosestResult other )

copy constructor


MeshClosestResult ( in Ref<PolygonMeshSpatialQueryCache> queryCache )


MeshClosestResult ()

default constructor


MeshClosestResult MeshClosestResult.clone? ()

clone method


Boolean MeshClosestResult.compareAndUpdate! ( in Size objectIndex, out Scalar maxScaledSquaredDistance )

If the getClosest resulting squared scaled distance is <= maxScaledSquaredDistance, returns ‘true’ and the object should preserve location information for that best candidate.


MeshClosestResult.copyResultFrom! ( in Ref<ClosestResult> other )

Sets the resulting getClosest location from the other ClosestResult (same type)


Boolean MeshClosestResult.getClosestPolygonLocation! ( in Size polygonIndex, in Ref<Vec3_dAttribute> pos_dAttr, in Ref<Vec3Attribute> posAttr, out Scalar maxScaledSquaredDistance )


MeshClosestResult.reset! ( in Vec3 position, in Vec3 scaling, in Boolean hasScaling )

Resets the content of the query (new getClosest beginning). If ‘hasScaling’, then ‘scaling’ will contain a non-uniform scaling vector. Else, ‘scaling’ will be :ref:`Vec3 <vec3>`(1,1,1).