I would like to ask why contrary to .NET in C++ adding mesh faces requires specifying additional vertex id.
For instance when adding 1 quad face it requires 5 vertex ids, and when adding triangle face 4 vertex ids (instead of 3 in .NET) What is the reason for that? And it is not necessary the same id first and last vertex.
I guess donβt understand the question. ON_Mesh::SetQuad requires the face index (to set) and four vertex indices (to reference). Perhaps you can rephrase your question?
Thanks Dale, I am going through the same exercise and have following question.
In ReadCurveFile method you have input as reference to pointer curve, while in the sample file you just call function and pass the pointer (without reference) -> This produce error.
What is correct way passing pointer or passing pointer with reference?
Here is the mistake I think:
The error is because youβve tried to use a function before it was declared. Either move the function above where you are calling or provide a forward declaration of the function.
What is correct way of specifying the filename?
If I specify filename like this, it builds successfully, but the writing method fails:
Rhino Command line after selecting curve says: Errors while writing myfile.3dm.
Thank you, I it was an issue about rights, I had to create in C drive a folder then it could be written correctly.
Now everything works good.
I would like to ask if the file that is generated here is an actual Rhino file (the written file is only 301 bytes)?
I can write and read information from the file generated as screenshot attached.