> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sorted Points by Distance from Surface

> AI context for Sorted Points by Distance from Surface. Not linked in navigation.

> This page is for AI assistant context only. To use this package, visit [community.ntop.com](https://community.ntop.com/packages/ntop/sorted-points-by-distance-from-surface).

## Summary

This custom block sorts a set of points based on the distance from a surface of a given implicit.

## Package Details

| Field            | Value                                                              |
| ---------------- | ------------------------------------------------------------------ |
| **ID**           | `sorted-points-by-distance-from-surface`                           |
| **Type**         | Block                                                              |
| **Author**       | nTop                                                               |
| **Version**      | 1.0.0                                                              |
| **nTop Version** | 5.44+                                                              |
| **Domain**       | Geometry                                                           |
| **Complexity**   | Beginner                                                           |
| **Tags**         | `sorted`, `points`, `distance`, `surface`, `proximity`, `ordering` |
| **License**      | MIT                                                                |
| **Verified**     | Yes                                                                |

***

This custom block sorts a set of points based on the distance from a surface of a given implicit.

## Installation

Clone this repo or copy the package folder into your nTop workspace:

```bash theme={null}
git clone https://github.com/nTopology/Utilities.git
```

The package lives at `packages/ntop/sorted-points-by-distance-from-surface/`.

## Inputs

| Name         | Type          | Description                               |
| ------------ | ------------- | ----------------------------------------- |
| `Point list` | Point List    | Points for sorting                        |
| `Body`       | Implicit Body | Body to compare for distance when sorting |

## Outputs

| Name     | Type       | Description                                    |
| -------- | ---------- | ---------------------------------------------- |
| `Sorted` | Point List | Sorts the point list based on the line lengths |

## License

MIT.

***

## Source

[https://community.ntop.com/packages/ntop/sorted-points-by-distance-from-surface](https://community.ntop.com/packages/ntop/sorted-points-by-distance-from-surface)
