Search the Community
Showing results for tags 'nurbs'.
-
The first time alloc_surf_data_ptr is called, it does not allocate memory and the pointers remain null. The problem is ONLY for TRIM_SURF. No problem with other surface types. If I repeat the call with the same parameters then the memory is allocated: // Make TrimSurf ent eTrimSurf; memset (&eTrimSurf, 0, sizeof (ent)); surf_type& sTrimSurf = eTrimSurf.u.sf; sTrimSurf.s.type = TRIM_SURF; eTrimSurf.refs = 0; // Fill in general trim surf stuff and allocate space for trim surf data... trim_type& trim = sTrimSurf.u.trim; trim.psf = pParentSurface; trim.outer_trimmed = false; trim.n_pts = 0; trim.c_ptr = nullptr; alloc_surf_data_ptr (&sTrimSurf); // TODO: alloc_surf_data_ptr does nothing the first time it is called if (trim.c_ptr == nullptr) { alloc_surf_data_ptr (&sTrimSurf); } ASSERT (trim.c_ptr != nullptr); if (trim.c_ptr == nullptr) return nullptr; This seems like an easy workaround and in most cases it works, but there are cases where the memory is corrupted and an invalid object is written to the database and/or there is a memory leak at the end. I think this is a bug in the chooks SDK. I'm using 2024, haven't tried 2025 yet. Has anyone else run into this problem and have a better solution?
-
the pic is from mastercan 2017 lathe finishing parameters using a nurbs spline as geometry. When using mastercam 2018, the Linear Tolerance field window is missing and the spline is interpolated roughly when machined. I solved this particular problem by simplifying the spline to an arc and reposting. But I need to have a better solution going forward. Any help would be appreciated. Thanks Chris
- 4 replies
-
- lathe finish
- nurbs
-
(and 2 more)
Tagged with:
-
I'm new to Mastercam 2017 (upgraded from X7), and I'm trying to create a lofted surface with multiple curves using the window option for my chains. The files are cranial scans that get saved as .iges files with curves consisting of lines that from a head (see image). In X7, I'd easily click lofted surface, select the window of all the curves, select a starting point and the surface was created instantly. In Mcam 2017, when I match the surface configuration settings as X7 it takes forever and creates thousands of surfaces that wrap from top to bottom. When I change the setting from NURBS to a curve generated surface, the single surface is created similar to X7. The problem is I need to re-save the file as an .iges and 2017 crashes every time when it's curve generated. When it creates the thousands of surfaces (NURBS setting) I can save as .iges no problem. My goal is to quickly create the SINGLE surface, and re-save just the surface as the new .iges file. Any help would be greatly appreciated!!
- 10 replies
Join us!
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.