<p>My first issue is getting a set of planes and a set of points as input, an find the projection of the those points on the nearest plane.</p>

<p>That was pretty easy, where i just calculate the normal of the plan and do some linear algebra to find the best plane to project  onto.</p>

<p>Now i do not have just normal planes, i have a set of freeform surfaces, like <span class="math-container">$\textit{Bspline}$</span> and <span class="math-container">$\textit{Nurbs}$</span> and i have to project my given points on those surfaces. i Struggle to find the  minimum distance between the point and the surface.</p>

<p>Any idea how to do that?</p>

CC BY-SA 4.0
2019-09-29T01:02:55.463Z
What accuracy do you need? Could you convert the surfaces to a set of planar polygons? That might be easier to work with. (Or it might tank performance because now you have hundreds of polygons instead of 1 surface. I'm just thinking out loud.)
user1118321
CC BY-SA 4.0
2019-09-29T13:59:26.677Z
well i am new in this field, can you maybe give me some hints about about how to convert any arbitrary surface to  a set of polygon. coz i dont think using the control point directly would really help
Mohbenay
<c++><projections><nurbs>
Projecting a point on a Freefrom surface
Mohbenay
# Projecting a point on a Freefrom surface

(Asked by: username_0 on 2019-09-26)

My first issue is getting a set of planes and a set of points as input, an find the projection of the those points on the nearest plane.

That was pretty easy, where i just calculate the normal of the plan and do some linear algebra to find the best plane to project onto.

Now i do not have just normal planes, i have a set of freeform surfaces, like $\textit{Bspline}$ and $\textit{Nurbs}$ and i have to project my given points on those surfaces. i Struggle to find the minimum distance between the point and the surface.

Any idea how to do that?

**Tags:** c++, projections, nurbs

> **Comments:**
> **username_1**: What accuracy do you need? Could you convert the surfaces to a set of planar polygons? That might be easier to work with. (Or it might tank performance because now you have hundreds of polygons instead of 1 surface. I'm just thinking out loud.)  
> **username_0**: well i am new in this field, can you maybe give me some hints about about how to convert any arbitrary surface to  a set of polygon. coz i dont think using the control point directly would really help  

---

## 0 answers

