cberg Posted April 9, 2018 Share Posted April 9, 2018 Is there a setting that allows me to smooth NURBS curve facets? The shape on the right is an extruded NURBS surface. The same shape on the right was an extruded NURBS Surface. The one on the left was made shape converted into a mesh and then a solid. Adjusting the 3d conversion resolution seems to have no effect on the appearance of the either shape. 1 Quote Link to comment
Kevin McAllister Posted April 10, 2018 Share Posted April 10, 2018 I hope I am understanding your description correctly. If the one on the left (the faceted one) was converted to a mesh then the "facets" you are seeing are actually the polygons of the mesh. The amount of faceting would have been determined by the active 3D Conversion Resolution at the time of the conversion. Those facets were maintained when the object was converted back to a solid. There is no easy way to smooth the shape out again geometry wise. You may be able to improve the appearance by adjusting the Mesh Smoothing Angle of the render mode you are using. I would avoid converting anything to a mesh unless there's a good reason to do so and set your 3d Conversion Resolution for the result you want prior to conversion. My example below shows the difference between converting at Low and High. If your goal was to create a generic solid from your original extrude I would do that conversion directly without using a mesh as an intermediate step. The 3d Conversion Resolution is used for conversion operations (eg. extrude to mesh) and when calculating solids operations (Solid Additions, Solid Subtractions etc.). The 2d Conversion Resolution is used for when extrudes and other pieces of 3d geometry are created from curved 2d shapes. NURBS curves and surfaces are inherently smooth geometry wise. They can appear facetted depending upon your render settings but the geometry remains smooth. For OpenGL for example, they may appear facetted at Low and Medium Detail settings. There is a rebuild command (Model>3d Power Pack>Rebuild NURBS). Note that once you extrude a NURBS surface it becomes a extrude or solid and is no longer a NURBS object. You can extract NURBS elements from it using the Extract Tool or by converting it to NURBS. Kevin 3 Quote Link to comment
cberg Posted April 10, 2018 Author Share Posted April 10, 2018 (edited) I will try to rebuild the NURBS surface command. Actually, the NURBS appeared faceted when in fact the underlying geometry was smooth. Here is the same surface before it was extruded. It is a true planar NURBS surface. Model is close to the origin. You can see the selection geometry was smooth but the Open GL representation is faceted. Adjusting the 3d conversion resolution did not help much. Is there another setting somewhere? Untitled 1a.vwx Edited April 10, 2018 by cberg Quote Link to comment
cberg Posted April 10, 2018 Author Share Posted April 10, 2018 Ok I see. There is a setting in Open GL Options where you can adjust the detail. I had mine set to low. 2 Quote Link to comment
Kevin McAllister Posted April 10, 2018 Share Posted April 10, 2018 8 minutes ago, cberg said: Ok I see. There is a setting in Open GL Options where you can adjust the detail. I had mine set to low. ^ that's the setting. Your NURBS surface only appears facetted because of the rendering preference, but its actual geometry is not. If you switch to Wireframe you'll see that its nice and smooth. I would recommend switching to Wireframe if you feel there's something not right with a piece of geometry. Wireframe will give you a clear indication of what the geometry looks like. Below is a Wireframe image of my example. You can see the faceting is clearly part of the geometry. Kevin Quote Link to comment
line-weight Posted November 27, 2019 Share Posted November 27, 2019 I am having similar issues, but can't seem to resolve it by changing any render settings. The images below show a viewpoint above a viaduct that diverges into two branches. Each of the viaducts is generated using a nurbs curve (in an extrude along path). In wireframe everything appears as it should - nice smooth curves, and the point where the two viaduct parapets converge (near the bottom right of the image) is correct - they join in line with each other. However in OpenGL, they are heavily segmented and the meeting point appears well out of alignment as a result. In hidden line, they are a bit better, but the same problems are there. Is there any way I can improve this? Is it because my Nurbs curves have too few vertices (I want to keep them to a minimum to ensure smooth curves and for filesize) Quote Link to comment
line-weight Posted November 27, 2019 Share Posted November 27, 2019 VWX file with relevant geometry attached: nurbs-v.vwx Quote Link to comment
Kevin McAllister Posted November 27, 2019 Share Posted November 27, 2019 You've built things in a similar way to how I would model that sort of shape. I think you've just hit upon a weakness in VW - it doesn't do large curves well. I've had this problem a lot with larger curved objects. I believe its directly related to how VW breaks curves down into segments for rendering. If the object is small, there's enough segments and it looks ok. As the curve gets larger, the segments get larger and it begins to look awful. Even when you turn the various conversion resolutions up, the segments still remain too large. I've attached an image showing what I mean. I'm not really sure what the solution is. Perhaps someone like @Matt Panzer knows a technical way around it. Kevin 1 Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted November 27, 2019 Vectorworks, Inc Employee Share Posted November 27, 2019 50 minutes ago, Kevin McAllister said: I'm not really sure what the solution is. Perhaps someone like @Matt Panzer knows a technical way around it. Unfortunately, I know of no technical way around this. Quote Link to comment
line-weight Posted November 27, 2019 Share Posted November 27, 2019 Thanks for the answer, which of course is not really the one I wanted to hear. So... VW can't draw large radius curves. OK. I assume the 'large' is relative to drawing units? So it could potentially be improved by changing what my drawing units are? Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted November 27, 2019 Vectorworks, Inc Employee Share Posted November 27, 2019 1 hour ago, line-weight said: I assume the 'large' is relative to drawing units? So it could potentially be improved by changing what my drawing units are? I do not believe it has anything to do with units. I would say it's relative to the zoom level. The closer you look, the larger the facets appear. Quote Link to comment
line-weight Posted November 27, 2019 Share Posted November 27, 2019 (edited) 44 minutes ago, Matt Panzer said: I do not believe it has anything to do with units. I would say it's relative to the zoom level. The closer you look, the larger the facets appear. I don't think that's true - the facets are the same size regardless of how far in or out I'm zoomed (at least, looking at it in OpenGL in VW2018) edit - fiddling around, I think I see what you mean, regardless of the radius of a curve in units, the 'closer' you look at it the more obvious they are. There is a facet per x angular degrees of curve. As @Kevin McAllister's diagram shows. Strange thing is that pasting one of the objects into a new document seems to halve the facet angle. I don't understand why; I can't seem to find any settings that are different. Edited November 27, 2019 by line-weight Quote Link to comment
line-weight Posted November 27, 2019 Share Posted November 27, 2019 An observation: if I draw a circle and zoom in (in OpenGL) there is a facet approximately every 5.5 degrees (image on left, orange line is the 'true' curve) But if I chop that circle back, so it's an arc with a sweep of only 5.5 degrees, it's faceted into much smaller pieces (to the extent that you have to really zoom in to see it, image on right) So it seems to be related to length of curve as well as radius (at least, as far as a circle is concerned, not sure the same applies to a NURBS path) Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted November 28, 2019 Vectorworks, Inc Employee Share Posted November 28, 2019 Right. I was simply stating that you can see the facets more when you zoom in. And yes, different objects are dealt with in different ways. I’ve always noticed circles and ovals were different in the past (I haven’t checked recently). Quote Link to comment
line-weight Posted November 28, 2019 Share Posted November 28, 2019 @Matt Panzer would it be fair to classify this as a bug? Effectively it would seem that there is certain geometry that is unusable/undrawable in Vectorworks. It's not something obscure that I want to draw - just something with a gradual curve. It looks like the only way I can do it is to manually draw it as a series of short, straight segments, that are shorter than the smallest faceting I can get VW to do. Quote Link to comment
axhake Posted November 28, 2019 Share Posted November 28, 2019 I’ve encountered similar problems with NURBS curves, (coincidently also trying to model a viaduct) selecting interpolated points mode I placed the NURBS curves through the alignment points I was given bu the client but the NURBS curves failed to pass through the points, it came close but not through. Similar problem as described above where the curve was faceted, adjusting the degree and weight made little difference. The way I managed to get something as close to acceptable as possible by creating the curve in another package and then importing in to Vectorworks. What may help was a Marionette script I found on the forum that Marissa created for someone wanting to divide a a curve into segments which does a similar thing, this may help Quote Link to comment
line-weight Posted November 28, 2019 Share Posted November 28, 2019 15 minutes ago, axhake said: I’ve encountered similar problems with NURBS curves, (coincidently also trying to model a viaduct) selecting interpolated points mode I placed the NURBS curves through the alignment points I was given bu the client but the NURBS curves failed to pass through the points, it came close but not through. Similar problem as described above where the curve was faceted, adjusting the degree and weight made little difference. The way I managed to get something as close to acceptable as possible by creating the curve in another package and then importing in to Vectorworks. What may help was a Marionette script I found on the forum that Marissa created for someone wanting to divide a a curve into segments which does a similar thing, this may help Thank you - I will have a look at that. I too have come to the conclusion that I am going to have to draw the path as a segmented line. This can be done by changing the degree of the NURBS path (to create more vertices) and/or converting each vertice to a corner type. Unfortunately this then results in the EAP object becoming hollow, which means I can't then subtract from it (for example to make the arches through the viaduct). So I'm now looking into using a loft instead of an EAP. Quote Link to comment
axhake Posted November 28, 2019 Share Posted November 28, 2019 Yep, went through the same process but gave up as results were not good, after several days of trying splashed out £200 and bought ProgeCAD, took about 10 minutes to do it and import in to Vectorworks. The amount of time I spent trying to get a smooth result out weighed the cost of something that worked. Quote Link to comment
line-weight Posted November 28, 2019 Share Posted November 28, 2019 2 minutes ago, axhake said: Yep, went through the same process but gave up as results were not good, after several days of trying splashed out £200 and bought ProgeCAD, took about 10 minutes to do it and import in to Vectorworks. The amount of time I spent trying to get a smooth result out weighed the cost of something that worked. Was the object you imported a genuinely curved geometry or was it segmented? Quote Link to comment
axhake Posted November 28, 2019 Share Posted November 28, 2019 I did some time ago do a comparison of the lack of accuracy relating to the faceting problem with curves, I compared the results from Vectorwork, AutoCAD, ArchiCAD and Microstation and found the results interesting which does pose a problem when trying to work with others Quote Link to comment
line-weight Posted November 28, 2019 Share Posted November 28, 2019 (edited) 25 minutes ago, axhake said: I did some time ago do a comparison of the lack of accuracy relating to the faceting problem with curves, I compared the results from Vectorwork, AutoCAD, ArchiCAD and Microstation and found the results interesting which does pose a problem when trying to work with others That's interesting - although, I think it is a parallel problem to the faceting problem - the geometry of the underlying curve could be 100% correct but the faceting problem still exist, I think? Did you ever get a response from VW on that? I have raised other questions to do with these kinds of curves, for example here specifically to do with NURBS curves: I also spent some time setting out the issue but there was no response from VW at all. Edited November 28, 2019 by line-weight Quote Link to comment
axhake Posted November 28, 2019 Share Posted November 28, 2019 No, raised it as a potential but but never heard back from anyone. Agreed; In you screen shot above the orange line shows the true geometry of the curve but the VGM is simplifying the curve by faceting it. Had a similar problem many years ago with Bentley MX Rail, doing rail alignment, all curves were displayed as faceted, took several weeks for someone to find out there was a check box within the application to enable curve fitting which once checked produced nice smooth curves, unfortunately it doesn't look like Vectorworks has this capability. But as I found without having a curve pass through the points as intended you will always end up with something that is an approximation and not what I needed to work with other design teams, when I passed some sections over to them they did not match the sections they created, slightly out each time due to the faceting problem. 1 Quote Link to comment
line-weight Posted November 28, 2019 Share Posted November 28, 2019 That is very poor that there was no follow-up from VW, after you put the effort in to do those tests and explain the results. I think the conclusion for now has to be that VW is simply not capable if you want to deal accurately with complex curved geometry. I'm going to have to rebuild most of my viaducts using segmented paths. Thanks for posting the Marionette link above, that will at least make it a bit less messy and tedious than it would be otherwise. 1 Quote Link to comment
Vectorworks, Inc Employee Matt Panzer Posted November 28, 2019 Vectorworks, Inc Employee Share Posted November 28, 2019 6 hours ago, line-weight said: @Matt Panzer would it be fair to classify this as a bug? Effectively it would seem that there is certain geometry that is unusable/undrawable in Vectorworks. It's not something obscure that I want to draw - just something with a gradual curve. It looks like the only way I can do it is to manually draw it as a series of short, straight segments, that are shorter than the smallest faceting I can get VW to do. It could be considered a bug, but it may be a technical limitation or simply a performance limitation. Can you send me a file with a few of you most problematic objects in it? I’d like to see if I can come up with anything that may help and, more importantly, I’d like to submit a bug with the file. While it may require a lot more than a bug fix, it’s worth a shot. In any case, it will get more eyes on the issue. 2 Quote Link to comment
line-weight Posted November 28, 2019 Share Posted November 28, 2019 52 minutes ago, Matt Panzer said: It could be considered a bug, but it may be a technical limitation or simply a performance limitation. Can you send me a file with a few of you most problematic objects in it? I’d like to see if I can come up with anything that may help and, more importantly, I’d like to submit a bug with the file. While it may require a lot more than a bug fix, it’s worth a shot. In any case, it will get more eyes on the issue. Thank you. I've attached an example file. If you look at the sheet layer I've tried to make obvious the issues. facetingproblems.vwx 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.