Forum Message



We have moved the forum to . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.


The forum is in read only mode.

Netgen - OpenCascade Geometry

2 years 2 months ago #3974 by joachim
Hi Julius,

thank you for the feature request, it was very easy to add. We can now revolve all kind of shapes OCC supports. It's available in the latest nightly.

That is the kind of feedback which is now most helpful.

Best, Joachim
2 years 2 months ago #3981 by NV
Replied by NV on topic Netgen - OpenCascade Geometry
It would be great if we could also generate 2D geometries with OCCGeometry.
from netgen.occ import * import ngsolve geometry = WorkPlane().Line(1).Rotate(90).Line(1).Rotate(90).Line(1).Close().Face() mesh = ngsolve.Mesh(OCCGeometry(geometry).GenerateMesh()) print(mesh.dim)
leads to a 3D mesh where problems occur if the specialcf.normal is calculated.

Best regards
2 years 2 months ago #3982 by joachim
Hi Nils,

yes, this is already available:
OCCGeometry(geometry, dim=2)

The occ-geometry is always 3D. With dim=2 the faces are the volumes, and edges are boundaries.

Here is also a very recent example:

Best, Joachim
Time to create page: 0.124 seconds