Build a surface in OCC from its equation

devdscm

CAD practitioner
Hello
i would know if there is way to build in OCC a 3d surface directly from its equation.
I have the explicit equation in the form :
z = f ( x,y)
The domain of x,y variables is rectangle , for example say 10x 10 .
Could share a fragment of code if possible a two levels ?:
1. geometry level to get a Handle(Geom_Surface) and / or
2 topology level to get a TopoDS_Face
Thanks in advance
 

Quaoar

Administrator
Staff member
You may want to have a look at the AdvApprox package. Some examples can be found in the codebase of OpenCascade itself, especially in GeomPlate_MakeApprox. We also published some notes on its application here, but this was for univariate functions (curves). Still, that's the package you're looking for.
 
Top