orbingol / rw3dm Goto Github PK
View Code? Open in Web Editor NEWRhino/OpenNURBS importer and exporter for NURBS-Python (geomdl)
License: MIT License
Rhino/OpenNURBS importer and exporter for NURBS-Python (geomdl)
License: MIT License
Hi everyone!
I just followed instructions from README.md
file on Compiling RW3DM
part, that is clone project, update submodules, create and run CMake command into build
directory, run make install
command (I have both executables on2json
and json2on
into install
directory).
But when I'm using the command ./on2json test.3dm
, I have the followed answer:
ON2JSON: Geometry Extractor for Rhino/OpenNURBS (RW3DM v2.1.4)
OpenNURBS version: 7.0.20071.14390
[ERROR] Geometry data was NOT extracted successfully
I am using Ubuntu 20.04 and I didn't found any similar problem on the web.
Thank you.
Im new to geomdl / rw3dm, facing some problems with converting primitives like e.g. a sphere from 3dm to json format.
The sphere is displayed in Rhino correctly.
However, after converting the 3dm file with on2sjon, and importing again with geomdl, the geometry is significantly different from what I would expect:
import os
from geomdl import NURBS
from geomdl import exchange
from geomdl.visualization import VisMPL as vis
Import surfaces
surfs = exchange.import_json("sph_r_0p5m.json")
Plot the control point grid and the evaluated surface
surfs[0].sample_size = 100
surfs[0].delta=0.05
surfs[0].vis = vis.VisSurface()
surfs[0].render()
geometry.zip -> 3dm and json file
I have tried to toggle normalize ... no effect.
Im grateful for any help, thanks!
json2on
can generate the trims of the BRep faces but it does not support converting inner trim curves from geomdl JSON to OpenNURBS .3dm format.
Update OpenNURBS v6.15 to v7.0
Reference: https://github.com/mcneel/opennurbs/releases/tag/v7.0.19309.17460
It looks like the output from json2on.exe is wrong when you use the current json file format. The current json file format records the control points without multiplying coordinates by the weights. It seems that json2on.exe needs the control points with the weights applied. If you simply multiple the coordinates of the control points by the weight, then json2on.exe will produce the correct output.
To Reproduce
These screen snapshots illustrate the differences between the two json files.
RhinoScreenSnapshots.zip
Maybe you want to think about adding a switch to the export json function that allows you to select which version of control points to export?
json2on
only supports spline type trim curves. It should support freeform and container trim types.
Please refer to geomdl documentation for details.
Describe the bug
Actions link to down binary is broken
To Reproduce
Click the link on the markdown
Expected behavior
A link to the downloads
Describe the bug
CMake 3.13.2 gives out Error when following the Installing procedure.
To Reproduce
Steps to reproduce the behavior:
rw3dm
should import and export trim curves that belong to the surfaces
I just type on2json MyONFile.3dm extract_curves=True in example(change it with my own filename)
it says on2json is not command line
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Hi:
Thanks for the amazing library.
I got the following error message after running on2json.exe
[ERROR] Cannot open file 'egg.3dm' for reading
[ERROR] Geometry data was NOT extracted successfully
I wonder what this message means. Btw, The file was created by Rhino 7.
Thanks.
I tried to extract the surface control points of a solid model using the on2json executable, but the operation failed. After analysing the case, I found that rw3dm does not support converting solid models; instead, the same object is constructed using the NURBS surfaces and joined to form a solid will work fine.
Note: By solid model, I mean, cad models created by extruding from a curve etc.
Steps to reproduce the behaviour:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.