OpenVSP: How to smooth small steps created with CompGeom

28 views
Skip to first unread message

Charles Hollender

unread,
Aug 22, 2025, 12:04:01 PMAug 22
to OpenVSP
Greetings,

I'm a new OpenVSP user. I combed through web series and documentation to find an answer to my question but came up empty. I found this forum useful so thought I would pose my question here. 

Some context on my question: I'm interested in importing airframe and control surface (watertight) grids into OpenVSP, rotating the control surfaces in OpenVSP, running CompGeom to generate a new watertight mesh from the intersection of these grids, then finally, export this new grid to a .tri format. Ideally this will be scripted using the Python API, but I want to iron out the wrinkles first. 

The control surface geometries have been designed to always intersect the airframe - regardless of deflection angle. 

The issue is, when I run CompGeom, there is a very small step that's generated between airframe and control surface. This step is enough to throw an error in Cart3D. 

Is there a way to automatically merge nodes when running CompGeom? I could create a little patch by hand, but would like to find an 'automated' solution that I can incorporate into a Python script. 

I tried scaling down the model before running CompGeom to take advantage of tolerances that might exist in the CompGeom algorithm, but this didn't work. 

Thanks!
Charlie




Rob McDonald

unread,
Aug 22, 2025, 12:12:40 PMAug 22
to ope...@googlegroups.com
Can you provide a screenshot of an example of this step -- and the geometries before CompGeom?

CompGeom doesn't move your geometry or create features.  It just intersects what is already there.

While you can probably do what you're describing with OpenVSP and CompGeom, Cart3D comes with 'intersect', a tool that essentially does what CompGeom can do -- and in some ways, Intersect is better than CompGeom.

Cart3D also has some tools for performing simple transformations (rotate, translate, scale) on individual meshes or tagged groups.

Using these tools, you should be able to take what you describe and use shell scripting to automate deflecting the surfaces and then intersecting the result -- all using Cart3D command line tools.

If I was trying to do what I think you are describing, this is how I would go about it.

Rob




--
You received this message because you are subscribed to the Google Groups "OpenVSP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openvsp/453f7eff-cb4b-4b2a-9dc0-bc3767184820n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages