- Thank you received: 0
SPSolid
4 years 1 month ago #3200
by LilBeng
Hi,
To create a Spline Surface object in __init__: base = SPSolid.
I cannot find this object SPSolid in the netgen library.
Version:
NETGEN-6.2.2007-107-g2763285b
NGSolve-6.2.2008
To create a Spline Surface object in __init__: base = SPSolid.
Code:
class SplineSurface():
"""
A surface for co dim 2 integrals on the splines
"""
def AddPoint(self, x: float, y: float, z: float, hpref: bool = False) -> int: ...
@typing.overload
def AddSegment(self, pnt1: int, pnt2: int, bcname: str = 'default', maxh: float = -1.0) -> None: ...
@typing.overload
def AddSegment(self, pnt1: int, pnt2: int, pnt3: int, bcname: str = 'default', maxh: float = -1.0) -> None: ...
def __init__(self, base: SPSolid, cuts: list = []) -> None: ...
pass
Version:
NETGEN-6.2.2007-107-g2763285b
NGSolve-6.2.2008
- mneunteufel
- Offline
- Premium Member
Less
More
- Thank you received: 59
4 years 1 month ago #3202
by mneunteufel
Replied by mneunteufel on topic SPSolid
Hi LilBeng,
in the NETGEN folder netgen/libsrc/csg/ you can find the definition/implementation of the SplineSurface class in splinesurface.hpp and splinesurface.cpp. In netgen/libsrc/csg/python_csg.cpp the class is exported to Python.
Best,
Michael
in the NETGEN folder netgen/libsrc/csg/ you can find the definition/implementation of the SplineSurface class in splinesurface.hpp and splinesurface.cpp. In netgen/libsrc/csg/python_csg.cpp the class is exported to Python.
Best,
Michael
4 years 1 month ago #3203
by LilBeng
Thanks!
There is one more question. If I create a set of planes and add them to geometry, is there a way to combine them into a solid?
I want to create a Solid of arbitrary shape from a set of surfaces. I hope for a quick answer.
There is one more question. If I create a set of planes and add them to geometry, is there a way to combine them into a solid?
Code:
geometry = CSGeometry()
...
for surface in [SplineSurfaces_1, ... , SplineSurfaces_n]:
geometry.AddSplineSurface(surface)
...
I want to create a Solid of arbitrary shape from a set of surfaces. I hope for a quick answer.
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 1 month ago #3214
by christopher
Replied by christopher on topic SPSolid
Hi,
I think the SplineSurface is not what you look for. It is a quite special application tool to get line segments in the csg 3d geometries.
If you want to create 2d spline surfaces and solids from it I would suggest you have a look at Opencascade. There you can create such surfaces and solids from it and you can use netgen to mesh them.
Best
Christopher
I think the SplineSurface is not what you look for. It is a quite special application tool to get line segments in the csg 3d geometries.
If you want to create 2d spline surfaces and solids from it I would suggest you have a look at Opencascade. There you can create such surfaces and solids from it and you can use netgen to mesh them.
Best
Christopher
Time to create page: 0.114 seconds