# \#opennurbs

**URL:** https://discourse.mcneel.com/tag/opennurbs/233.md

[Latest](https://discourse.mcneel.com/latest.md) · [Categories](https://discourse.mcneel.com/categories.md) · [Tags](https://discourse.mcneel.com/tags.md)

---

## [Compilation error in opennurbs\_system.h](https://discourse.mcneel.com/t/compilation-error-in-opennurbs-system-h/210051)

<div class="topic-metadata">

**Author:** [@Thierry](https://discourse.mcneel.com/u/Thierry)\
**Replies:** 0\
**Last updated:** [September 22, 2025, 3:48pm UTC](https://discourse.mcneel.com/t/compilation-error-in-opennurbs-system-h/210051 "2025-09-22T15:48:41Z")

</div>

Hello, Trying to compile openNURBS 8.21.25188.17001 on FreeBSD, with Clang 19.1.7 fails with this error: FAILED: CMakeFiles/opennurbsStatic.dir/cmake\_pch.hxx.pch /usr/bin/c++ -DMY\_ZCALLOC -DON\_CMAKE\_BUILD -DON\_COMPI…

---

## [FileIO.File3d x RhinoDoc - opennurbs issue](https://discourse.mcneel.com/t/fileio-file3d-x-rhinodoc-opennurbs-issue/192686)

<div class="topic-metadata">

**Author:** [@janotaondrej91](https://discourse.mcneel.com/u/janotaondrej91)\
**Replies:** 4\
**Last updated:** [October 11, 2024, 5:40am UTC](https://discourse.mcneel.com/t/fileio-file3d-x-rhinodoc-opennurbs-issue/192686 "2024-10-11T05:40:07Z")

</div>

Hello, I would like to ask few “maybe simple” questins, which I am not sure of the answers. Recently, I deal with task of generating .3dm files from inside of the Rhino/Grasshopper. I was able to do so (and I am absolu…

---

## [ON\_Hatch get display curve](https://discourse.mcneel.com/t/on-hatch-get-display-curve/189646)

<div class="topic-metadata">

**Author:** [@eraud](https://discourse.mcneel.com/u/eraud)\
**Replies:** 5\
**Last updated:** [August 20, 2024, 8:36am UTC](https://discourse.mcneel.com/t/on-hatch-get-display-curve/189646 "2024-08-20T08:36:04Z")

</div>

Dear , into opennurbs sources ,from a ON\_Hatch , is there a method for getting the display list of curve ? when I use , into rhino software , the method Explode on Hatch , I can see the list of curve but it is into rhi…

---

## [Updating opennurbs](https://discourse.mcneel.com/t/updating-opennurbs/185408)

<div class="topic-metadata">

**Author:** [@Omid1](https://discourse.mcneel.com/u/Omid1)\
**Replies:** 2\
**Last updated:** [June 28, 2024, 2:58pm UTC](https://discourse.mcneel.com/t/updating-opennurbs/185408 "2024-06-28T14:58:52Z")

</div>

Hello, I had an older version of opennurbs (2012) and want to update it to latest one but I can’t find some of those commands. I am using mostly ONX\_model class and now I get compiling error when I get to those old func…

---

## [Starting in openNurbs development](https://discourse.mcneel.com/t/starting-in-opennurbs-development/178203)

<div class="topic-metadata">

**Author:** [@Abraham\_Felipe\_Masme](https://discourse.mcneel.com/u/Abraham_Felipe_Masme)\
**Replies:** 1\
**Last updated:** [March 19, 2024, 5:42am UTC](https://discourse.mcneel.com/t/starting-in-opennurbs-development/178203 "2024-03-19T05:42:18Z")

</div>

Hello, I am starting to develop applications through rhino’s OpenNurbs libraries, however I cannot find enough tutorials to guide me, could you give me some advice on how to get started in the right way in developing thi…

---

## [How to use SetUserString(opennurbs) and GetUserString(c++ sdk) properly](https://discourse.mcneel.com/t/how-to-use-setuserstring-opennurbs-and-getuserstring-c-sdk-properly/177729)

<div class="topic-metadata">

**Author:** [@tracyma](https://discourse.mcneel.com/u/tracyma)\
**Replies:** 2\
**Last updated:** [March 12, 2024, 8:58pm UTC](https://discourse.mcneel.com/t/how-to-use-setuserstring-opennurbs-and-getuserstring-c-sdk-properly/177729 "2024-03-12T20:58:01Z")

</div>

try to save curves with opennurbs and SetUserString: ON\_NurbsCurve\* rhinoCurve = new ON\_NurbsCurve(...); rhinoCurve-\>SetCV(); rhinoCurve-\>SetKnot(); // Option 1: SetUserString directly rhinoCurve-\>SetUserString(L"MyKey"…

---

## [Why cannot I use opennurbs in C++ DLL with Visual studio 2019](https://discourse.mcneel.com/t/why-cannot-i-use-opennurbs-in-c-dll-with-visual-studio-2019/168660)

<div class="topic-metadata">

**Author:** [@鄭宗偉](https://discourse.mcneel.com/u/%E9%84%AD%E5%AE%97%E5%81%89)\
**Replies:** 7\
**Last updated:** [November 17, 2023, 7:24pm UTC](https://discourse.mcneel.com/t/why-cannot-i-use-opennurbs-in-c-dll-with-visual-studio-2019/168660 "2023-11-17T19:24:39Z")

</div>

I wanna use OpenNurbs in C++ and create a DLL. There is no “stdafx.h” in my project, but a header named “pch.h” where, therefore, I added the following lines with the instructions. #define OPENNURBS\_PUBLIC\_INSTALL\_DIR “…

---

## [Brep.CreateFromCornerPoints](https://discourse.mcneel.com/t/brep-createfromcornerpoints/162921)

<div class="topic-metadata">

**Author:** [@charlie\_portell](https://discourse.mcneel.com/u/charlie_portell)\
**Replies:** 7\
**Last updated:** [July 31, 2023, 11:29pm UTC](https://discourse.mcneel.com/t/brep-createfromcornerpoints/162921 "2023-07-31T23:29:38Z")

</div>

Hi, I have a C# project where I have referenced the latest Rhino3d NuGet package (version 7.15.0). I am trying to create a brep from 4 corner points Brep.CreateFromCornerPoints. For some reason when I try to use this l…

---

## [Rhino1RailSweep seems bugged](https://discourse.mcneel.com/t/rhino1railsweep-seems-bugged/157922)

<div class="topic-metadata">

**Author:** [@funkvessel](https://discourse.mcneel.com/u/funkvessel)\
**Replies:** 9\
**Last updated:** [April 26, 2023, 9:26pm UTC](https://discourse.mcneel.com/t/rhino1railsweep-seems-bugged/157922 "2023-04-26T21:26:18Z")

</div>

I’ve made some trivial tweaks to the cmdSampleSweep2 project to perform a Sweep1: CRhinoCommand::result CCommandSampleSweep2::RunCommand(const CRhinoCommandContext& context) { // Select first rail curve CRhinoGetObj…

---

## [Reading instanced geometry](https://discourse.mcneel.com/t/reading-instanced-geometry/78789)

<div class="topic-metadata">

**Author:** [@nathaniel](https://discourse.mcneel.com/u/nathaniel)\
**Replies:** 6\
**Last updated:** [April 21, 2023, 7:53am UTC](https://discourse.mcneel.com/t/reading-instanced-geometry/78789 "2023-04-21T07:53:58Z")

</div>

Hello, I have just started using OpenNURBS to read 3dm models into my (C++) application. Naturally, getting started with a new library takes some time, but I am currently trying to figure out how to properly read the in…

---

## [Simple way to integrate openNURBS into GH project](https://discourse.mcneel.com/t/simple-way-to-integrate-opennurbs-into-gh-project/155547)

<div class="topic-metadata">

**Author:** [@xliotx](https://discourse.mcneel.com/u/xliotx)\
**Replies:** 6\
**Last updated:** [April 6, 2023, 1:56pm UTC](https://discourse.mcneel.com/t/simple-way-to-integrate-opennurbs-into-gh-project/155547 "2023-04-06T13:56:21Z")

</div>

This problem has been hovering above me for a while. I’m writing a GH plugin that needs integration of cpp for data processing. I need to transfer RhinoCommon data structures, mainly Point3d, Mesh, etc. (basic types) a…

---

## [C#/C++ OpenNURBS - Getting an ON\_NurbsCurve from an IntPtr](https://discourse.mcneel.com/t/c-c-opennurbs-getting-an-on-nurbscurve-from-an-intptr/154868)

<div class="topic-metadata">

**Author:** [@tom\_svilans](https://discourse.mcneel.com/u/tom_svilans)\
**Replies:** 6\
**Last updated:** [February 15, 2023, 10:21am UTC](https://discourse.mcneel.com/t/c-c-opennurbs-getting-an-on-nurbscurve-from-an-intptr/154868 "2023-02-15T10:21:30Z")

</div>

Hi again, I am able to get a pointer to a managed Brep and use it as an ON\_Brep\* in C++: C++ int brep\_get\_num\_verts(ON\_Brep\* brep) { // Useless test function int N = 0; // Iterate over the vertices just to …

---

## [How to assign a parent layer using openNURBS](https://discourse.mcneel.com/t/how-to-assign-a-parent-layer-using-opennurbs/35108)

<div class="topic-metadata">

**Author:** [@gero](https://discourse.mcneel.com/u/gero)\
**Replies:** 8\
**Last updated:** [October 31, 2022, 3:17am UTC](https://discourse.mcneel.com/t/how-to-assign-a-parent-layer-using-opennurbs/35108 "2022-10-31T03:17:43Z")

</div>

Hi, I’d like to create a Rhino file with hierarchical layers. I.e. I want to have Layer2 be the child of parent layer Layer1. How can I accomplish this? I assume I have to assign the uuid of the parent layer to the chil…

---

## [Convert opencascade TopoDS\_Shape to Rhino ON\_Brep](https://discourse.mcneel.com/t/convert-opencascade-topods-shape-to-rhino-on-brep/144914)

<div class="topic-metadata">

**Author:** [@amin\_yaaghoobi](https://discourse.mcneel.com/u/amin_yaaghoobi)\
**Replies:** 1\
**Last updated:** [July 6, 2022, 5:21pm UTC](https://discourse.mcneel.com/t/convert-opencascade-topods-shape-to-rhino-on-brep/144914 "2022-07-06T17:21:38Z")

</div>

I want to convert brep data in opnecascade (TopoDS\_Shape) to Rhino opennurbs (ON\_BRep). Does anyone have experience in this conversion?

---

## [Using openNURBS lib in a cpp/c# mixed Grasshopper Component](https://discourse.mcneel.com/t/using-opennurbs-lib-in-a-cpp-c-mixed-grasshopper-component/139640)

<div class="topic-metadata">

**Author:** [@xliotx](https://discourse.mcneel.com/u/xliotx)\
**Replies:** 9\
**Last updated:** [March 18, 2022, 10:16pm UTC](https://discourse.mcneel.com/t/using-opennurbs-lib-in-a-cpp-c-mixed-grasshopper-component/139640 "2022-03-18T22:16:13Z")

</div>

I’m developing a cpp+c# mixed Grasshopper component project. I need to send my mesh from Grasshopper as IntPtr pMesh = Rhino.Runtime.Interop.NativeGeometryNonConstPointer(rhinoMesh); to the cpp side, do so…

---

## [Problem with creation of a ON\_BezierSurface by lofting](https://discourse.mcneel.com/t/problem-with-creation-of-a-on-beziersurface-by-lofting/126568)

<div class="topic-metadata">

**Author:** [@armin1](https://discourse.mcneel.com/u/armin1)\
**Replies:** 4\
**Last updated:** [July 27, 2021, 8:15pm UTC](https://discourse.mcneel.com/t/problem-with-creation-of-a-on-beziersurface-by-lofting/126568 "2021-07-27T20:15:35Z")

</div>

Hi, I’m trying to create an interpolation surface for an airfoil by using the method ON\_BezierSurface::Loft(int count, const ON\_BezierCurve\* const\* curve\_list); I start out with a set of ON\_BezierCurves, lofted from p…

---

## [Exception trying to convert ON\_wString to std::string](https://discourse.mcneel.com/t/exception-trying-to-convert-on-wstring-to-std-string/125374)

<div class="topic-metadata">

**Author:** [@margari](https://discourse.mcneel.com/u/margari)\
**Replies:** 6\
**Last updated:** [June 8, 2021, 7:39am UTC](https://discourse.mcneel.com/t/exception-trying-to-convert-on-wstring-to-std-string/125374 "2021-06-08T07:39:01Z")

</div>

Hello, Working on my plugin running on Rhinoceros (x64) and developed using vc++ on visaul studio 2010 I founded a strange issue. I need to convert an ON\_wString to a std::wstring but it throws an exception. An exampl…

---

## [Persistent id on topology?](https://discourse.mcneel.com/t/persistent-id-on-topology/121352)

<div class="topic-metadata">

**Author:** [@jerome.roche](https://discourse.mcneel.com/u/jerome.roche)\
**Replies:** 5\
**Last updated:** [March 30, 2021, 3:37pm UTC](https://discourse.mcneel.com/t/persistent-id-on-topology/121352 "2021-03-30T15:37:33Z")

</div>

Hello, does Rhino save persistent ids on the faces and the edges of breps ? If yes, please where can I find them with opennurbs ? Regards.

---

## [Fillet edge in sharp angle](https://discourse.mcneel.com/t/fillet-edge-in-sharp-angle/118200)

<div class="topic-metadata">

**Author:** [@earickgob](https://discourse.mcneel.com/u/earickgob)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 10:40am UTC](https://discourse.mcneel.com/t/fillet-edge-in-sharp-angle/118200 "2021-02-10T10:40:21Z")

</div>

how do I make a round “weld” like the gray object? If I choose fillet edge, the top surface will stay open and is not reconstructed.

---

## [Query regarding creating trimmed Rev surface (Brep)](https://discourse.mcneel.com/t/query-regarding-creating-trimmed-rev-surface-brep/117647)

<div class="topic-metadata">

**Author:** [@psomesh94](https://discourse.mcneel.com/u/psomesh94)\
**Replies:** 1\
**Last updated:** [February 2, 2021, 5:42pm UTC](https://discourse.mcneel.com/t/query-regarding-creating-trimmed-rev-surface-brep/117647 "2021-02-02T17:42:55Z")

</div>

Hello Rhino Forum Team and @dale , I am working on converting Rhino Brep geometry into Parasolid. While traversing Brep data I get different type of surfaces like- Planer, NURBS, Sum surface and Rev surface. I am able …

---

## [How to get volume of Rhino model](https://discourse.mcneel.com/t/how-to-get-volume-of-rhino-model/116308)

<div class="topic-metadata">

**Author:** [@psomesh94](https://discourse.mcneel.com/u/psomesh94)\
**Replies:** 1\
**Last updated:** [January 15, 2021, 4:19pm UTC](https://discourse.mcneel.com/t/how-to-get-volume-of-rhino-model/116308 "2021-01-15T16:19:02Z")

</div>

Hello @dale, I need to calculate the volume of a Rhino 3dm model. In Rhino modular there is a command ‘volume’ which gives us the volume of the selected entity. So is there any function/API in OpenNURBS for calculating…

---

## [Query regarding Trimmed and Untrimmed surfaces](https://discourse.mcneel.com/t/query-regarding-trimmed-and-untrimmed-surfaces/112566)

<div class="topic-metadata">

**Author:** [@psomesh94](https://discourse.mcneel.com/u/psomesh94)\
**Replies:** 6\
**Last updated:** [December 2, 2020, 12:24pm UTC](https://discourse.mcneel.com/t/query-regarding-trimmed-and-untrimmed-surfaces/112566 "2020-12-02T12:24:23Z")

</div>

Hello guys, I am working on mapping Rhino entities into corresponding Parasolid entities. I have a query regarding trimmed and untrimmed surface. Does Open NURBS API provide us any information to check if the surface i…

---

## [Issue compiling on Ubuntu 20.04LTS](https://discourse.mcneel.com/t/issue-compiling-on-ubuntu-20-04lts/108065)

<div class="topic-metadata">

**Author:** [@gulati](https://discourse.mcneel.com/u/gulati)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 10:35am UTC](https://discourse.mcneel.com/t/issue-compiling-on-ubuntu-20-04lts/108065 "2020-09-08T10:35:27Z")

</div>

Started with installing NET Core SDK on Ubuntu Microsoft Guide wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.de…

---

## [About creating a NURBS Surface with C#](https://discourse.mcneel.com/t/about-creating-a-nurbs-surface-with-c/107032)

<div class="topic-metadata">

**Author:** [@damentsai](https://discourse.mcneel.com/u/damentsai)\
**Replies:** 7\
**Last updated:** [August 20, 2020, 9:50am UTC](https://discourse.mcneel.com/t/about-creating-a-nurbs-surface-with-c/107032 "2020-08-20T09:50:37Z")

</div>

I’m new here and just joined the field. Does anybody know, how to create a random coarse surface with C# NURBS? Thanks.

---

## [Project a 3d curve on a 3d brep](https://discourse.mcneel.com/t/project-a-3d-curve-on-a-3d-brep/107117)

<div class="topic-metadata">

**Author:** [@amohammadibaghbanan](https://discourse.mcneel.com/u/amohammadibaghbanan)\
**Replies:** 4\
**Last updated:** [August 16, 2020, 8:36am UTC](https://discourse.mcneel.com/t/project-a-3d-curve-on-a-3d-brep/107117 "2020-08-16T08:36:56Z")

</div>

Hello dear subscribers … I want to project a a 3d curve on a d brep I got closest point of divided nurb curves and with the closest points I interpolated them again but with doing this some curves which are out of the …

---

## [Rebuilding Geometry/3dm file from serialized JSON](https://discourse.mcneel.com/t/rebuilding-geometry-3dm-file-from-serialized-json/104370)

<div class="topic-metadata">

**Author:** [@blind](https://discourse.mcneel.com/u/blind)\
**Replies:** 2\
**Last updated:** [July 16, 2020, 11:38am UTC](https://discourse.mcneel.com/t/rebuilding-geometry-3dm-file-from-serialized-json/104370 "2020-07-16T11:38:21Z")

</div>

Hi there, I’m trying to JSON serialize my Rhino-file or Geometry so I can send it to and retrieve it from a database. So I’m stuck in two places: Can I retrieve a File3dm object of the Rhino ActiveDoc without writin…

---

## [Rhino to Substance Painter](https://discourse.mcneel.com/t/rhino-to-substance-painter/42909)

<div class="topic-metadata">

**Author:** [@Scott\_E](https://discourse.mcneel.com/u/Scott_E)\
**Replies:** 17\
**Last updated:** [December 5, 2019, 6:11pm UTC](https://discourse.mcneel.com/t/rhino-to-substance-painter/42909 "2019-12-05T18:11:17Z")

</div>

Does anyone know if it would be possible to use opennurbs to create a bridge to Substance painter? I need to open a .3dm file in Substance to add the texture and keep it in .3dm format so that I have access to all the un…

---

## [Is it possible to redistribute opennurbs.dll in Rhino?](https://discourse.mcneel.com/t/is-it-possible-to-redistribute-opennurbs-dll-in-rhino/79201)

<div class="topic-metadata">

**Author:** [@duomaxwell20](https://discourse.mcneel.com/u/duomaxwell20)\
**Replies:** 4\
**Last updated:** [February 24, 2019, 7:09am UTC](https://discourse.mcneel.com/t/is-it-possible-to-redistribute-opennurbs-dll-in-rhino/79201 "2019-02-24T07:09:58Z")

</div>

I’m working with opennurbs not Rhino. The opensource opennurbs does not ship some functionalities, and those are only enabled in Rhino. I found that Rhino SDK license says that it can be used no limitation, literally. …

---

## [Link Error when using OpenNurbs lib](https://discourse.mcneel.com/t/link-error-when-using-opennurbs-lib/77216)

<div class="topic-metadata">

**Author:** [@qyumail](https://discourse.mcneel.com/u/qyumail)\
**Replies:** 1\
**Last updated:** [January 24, 2019, 12:54am UTC](https://discourse.mcneel.com/t/link-error-when-using-opennurbs-lib/77216 "2019-01-24T00:54:30Z")

</div>

In my system, building a windows console app with opennurbs\_public\_staticlib.lib is successful at most of time. However, sometimes, I got link error when I try some of functions. For example,if I use the following t…

---

## [How do I properly set up Visual Studio with openNURBS?](https://discourse.mcneel.com/t/how-do-i-properly-set-up-visual-studio-with-opennurbs/73711)

<div class="topic-metadata">

**Author:** [@binigya](https://discourse.mcneel.com/u/binigya)\
**Replies:** 1\
**Last updated:** [October 23, 2018, 6:32pm UTC](https://discourse.mcneel.com/t/how-do-i-properly-set-up-visual-studio-with-opennurbs/73711 "2018-10-23T18:32:52Z")

</div>

Hey, I’m a new user and I followed the following steps to set up VS with openNURBS: a) https://developer.rhino3d.com/guides/opennurbs/getting-started/ b) https://developer.rhino3d.com/guides/opennurbs/linking-with-open…

[Next page](https://discourse.mcneel.com/tag/opennurbs/233.md?match_all_tags=true&page=1&tags%5B%5D=opennurbs)
