ResurfLib®Documentation Center
Introduction to ResurfLib® library functions
Welcome to the ResurfLib library function documentation center! Here is a collection of ResurfLib's comprehensive technical documentation, development guides, and best practices, designed to help developers and technology enthusiasts better understand and use our products and services.
ResurfLib® is a fully self-contained library of fundamental and specialized NURBS curve and surface algorithms, developed entirely in China without third-party functions.
The ResurfLib® documentation center contains the following main contents:
- Point cloud fitting NURBS surface function
- Mesh Fits NURBS Surface Function
- Use OCC library functions to export surfaces to IGES and STEP format files
- Detailed documentation of the NURBS curved surface geometry modeling function and its independent library function API
- Mesh/surface unfolding mapping function
- Fill holes with NURBS surfaces
- NURBS Surface Deformation for Springback Compensation
- Automatic STL Mesh-to-NURBS Surface Conversion
- FAQs
We are committed to providing accurate, timely, and easy-to-understand documentation. If you find any bugs or need to add something, please contact us using the contact details at the bottom of the page.
back to top
Point cloud fitting NURBS surface function
The point cloud fitting NURBS surface function belongs to ResurfFitLib, a submodule of ResurfLib.
Click the link in the left navigation bar to learn more about the point cloud fitting NURBS surface feature.
Main content
- API for Testing Point Cloud Fitting NURBS Surface Functionality - Learn how to quickly test point cloud fit NURBS surface functionality
- Create a VS2019 Project Call ResurfFitLib's API to Test Fit NURBS Surfaces - Learn how to try out the VS 2019 Engineering Template Test Point Cloud API for fitting NURBS surfaces
- API Detailed Explanation - Learn about all APIs for point cloud fitting NURBS surface functionality

Mesh Fits NURBS Surface Function
The Mesh Fit NURBS surface function belongs to ResurfFitLib, a submodule of ResurfLib.
Click the links in the left navigation bar to learn more about the Meshfit NURBS Surface feature.
Main content
- API for Testing Mesh Fitting NURBS Surfaces - Learn how to quickly test Meshfit NURBS Surface functionality
- Create a VS2019 Project API to Call ResurfFitLib Tests Fitting NURBS Surfaces - Learn how to try out the VS 2019 Engineering Templates Test Mesh Fitting NURBS Surface Feature API
- NURBS Surface Data Structure Definition - Learn about the data structure for NURBS curves and clipped NURBS surfaces defined by ResurfLib
- API Detailed Description - Learn all APIs for the Mesh Fitting NURBS Surface feature

Exporting Surfaces to IGES and STEP Using OCC
Contents
- Test File Evaluation Guide
- VS 2019 Sample Project
- Detailed API Reference
Standalone NURBS Surface Modeling Library: Detailed API Reference
Contents
- Test File Evaluation Guide
- VS 2019 Sample Project
- Detailed API Reference
Mesh/surface expansion function

Key features and their API
- RsMapmesh2NewMeshQF (maps source mesh to target mesh)
- RsVmbMapBuildLayerVolumeMesh_RR (Divides the outgoing mesh between the source and target meshes)
- RsMeshFromPointcloudQF (Point Cloud Generated Mesh)
- RsTriQuadMeshUnfolder (Expand 3D mesh into 2D planar mesh)
- RsTriQuadMeshWithCurvesUnfolderQF (Expands 3D meshes and curves on meshes into 2D planar meshes and planar curves)
Fill holes with NURBS surfaces

Main content
- Introduction to NURBS Surface Fill Holes function module and library function API description
- API detailed documentation
- RsFillHoleByNurbs_Start (NURBS Surface Fill Hole Initialization)
- RsFillHoleByNurbs_AppendBoundaryCurve (Increase Boundary Curve)
- RsFillHoleByNurbs_AppendSurfaceEdge (Increase Surface Boundary)
- RsFillHoleByNurbs_SetSmoothFactor (Set Surface Smoothing Factor)
- RsFillHoleByNurbs_SetDrapSurfaceType (Set Surface Shape Type)
- RsFillHoleByNurbs_DoFill (Perform Surface Fill Calculations)
- RsFillHoleByNurbs_GetNurbs (Get data on the fill surface)
- RsFillHoleByNurbs_Get2DTrimmingCurveCount (Gets the number of clipping curves that fill the surface)
- RsFillHoleByNurbs_Get2DTrimmingCurve (Obtain the 2D parameter curve of the clipping curve of the filled surface)
- RsFillHoleByNurbs_Get3DTrimmingCurve (Gets the 3D surface curve of the clipping curve that fills the surface)
- RsFillHoleByNurbs_End (NURBS Surface Fill Hole End)
NURBS Surface Deformation for Springback Compensation

Contents
- NURBS Surface Deformation for Springback Compensation: Module Overview and API Reference
- NURBS Surface Springback Compensation Example 1 (OCC Import and Export)
- NURBS Surface Springback Compensation Example 2 (Direct Integration Without File Import or Export)
- NURBS Surface Springback Compensation: Quick Testing and Code Integration Guide
- Detailed API Reference
- surfmap_start (Initialize NURBS surface deformation)
- surfmap_import_origstl (Import the original mesh from an .stl file)
- surfmap_set_origmesh(Supply the original mesh data)
- surfmap_import_tragetstl (Import the target deformation mesh from an .stl file)
- surfmap_set_newmesh(Supply the target mesh data)
- surfmap_import_origsurface_igs(Import surface data from an IGES file)
- surfmap_AppendNurbsData (Append an original NURBS surface)
- surfmap_Append2DLoop_start (Start appending a trimming loop to the surface)
- surfmap_Append2DNurbCurveInLoop (Append a 2D NURBS curve to the loop)
- surfmap_Append2DLoop_end (Finish appending all trimming loops for the surface)
- surfmap_setFeed (Set the deformation amount)
- surfmap_domap (Perform surface deformation)
- surfmap_GetNewFaceCount (Get the number of successfully deformed surfaces)
- surfmap_GetLoopCount (Get the number of trimming loops for a specified faceid)
- surfmap_GetNurbs (Get NURBS surface data for a specified surface index)
- surfmap_Get2DTrimmingCurveCount (Get the number of curves in a specified loop of a specified surface)
- surfmap_Get2DTrimmingCurve (Get curve data using the surface, loop, and curve indices)
- surfmap_export_newsurface_igs(Export the surface data directly to an IGES file)
- surfmap_end (End NURBS surface deformation)
Automatic STL Mesh-to-NURBS Surface Conversion

Contents
Frequently Asked Questions
Contents
- Test File Evaluation Guide
- VS 2019 Sample Project
- Detailed API Reference
Contact us
If you have any questions, suggestions, or need technical support, please contact us at:
Support channels
- Email : info@resurf3d.com
- Phone : +86 1381 5859 460
- Live Chat : Visit our website and click on the chat icon in the bottom right corner
- Community Forum : www.resurf3d.com
Feedback and suggestions
We value user feedback and suggestions. If you find any errors, omissions, or unclear areas in the documentation, or if you have any suggestions for improvement, please let us know through the channels above.
Working hours
Our technical support team is available from 9 a.m. to 6 p.m. (Beijing time) on weekdays. For urgent questions during non-working hours, please send an email and we will respond as soon as possible on the next business day.
back to top