Logo Euclid

Points3D Type

A type containing only static member functions for operating on multiple 3D points or set of 3D points. Aka point-clouds

Static members

Static member Description

Points3D.center pts

Full Usage: Points3D.center pts

Parameters:
Returns: Pnt

Finds the center, mean, or average point.

pts : IList<Pnt>
Returns: Pnt

Points3D.closestPoint pnt pts

Full Usage: Points3D.closestPoint pnt pts

Parameters:
Returns: Pnt

Returns the closest point from a 3D point list to a given 3D point.

pnt : Pnt
pts : IList<Pnt>
Returns: Pnt

Points3D.closestPointIndex pnt pts

Full Usage: Points3D.closestPointIndex pnt pts

Parameters:
Returns: int

Returns the closest 3D point index from a 3D point list to a given 3D point.

pnt : Pnt
pts : IList<Pnt>
Returns: int

Points3D.closestPointsIndices xs ys

Full Usage: Points3D.closestPointsIndices xs ys

Parameters:
Returns: int * int

Returns the indices of the 3D points that are closest to each other.

xs : IList<Pnt>
ys : IList<Pnt>
Returns: int * int

Points3D.minDistanceBetweenPointSets xs ys

Full Usage: Points3D.minDistanceBetweenPointSets xs ys

Parameters:
Returns: float

Given two lists of 3D points finds the pair that are closest to each other and returns their distance.

xs : IList<Pnt>
ys : IList<Pnt>
Returns: float

Points3D.mostDistantPoint checkAgainst findPointFrom

Full Usage: Points3D.mostDistantPoint checkAgainst findPointFrom

Parameters:
Returns: Pnt

Find the 3D point in 'findPointFrom' that has the biggest distance to any 3D point in 'checkAgainst'. The list to check against comes first, the list to find the point from comes last.

checkAgainst : IList<Pnt>
findPointFrom : IList<Pnt>
Returns: Pnt

Points3D.mostDistantPointIndices checkAgainst findPointFrom

Full Usage: Points3D.mostDistantPointIndices checkAgainst findPointFrom

Parameters:
Returns: int * int

Find the index of the 3D point that has the biggest distance to any 3D point from the other set. Basically the most lonely point in 'findPointFrom' list with respect to 'checkAgainst' list. The list to check against comes first, the list to find the point from comes last. Returns findPointFromIdx * checkAgainstIdx

checkAgainst : IList<Pnt>
findPointFrom : IList<Pnt>
Returns: int * int

Points3D.normalOfPoints pts

Full Usage: Points3D.normalOfPoints pts

Parameters:
Returns: Vec

Finds the mean normal of many points. It finds the center point and then takes cross-products, iterating all points in pairs of two. The first three points define the orientation of the normal. So it considers the current order of points too. If the order is counter-clockwise in the World X-Y plane, then the normal is in world Z orientation. The sweep from the first to the second point (from the mean center) defines the orientation of the normal.

pts : IList<Pnt>
Returns: Vec

Type something to start searching.