I tried searching for this on the forum. Can someone suggest how to create a sinusoidal pipe in 3D (not a helix which I found in the magnetism example). The center line of the pipe should be something like (here a is a fixed parameter)
(cos(ax), sin(ax),0)
for say 0<=x<=2 pi/a and the cross section should be a simple ellipse or disk.
Perhaps also could you suggest the right place to look for the occ commands available in NGSpy?
I think the OpenCascade command I need is GeomFill_Pipe, but I don’t think this is in netgen.occ . In OCC, AI suggested the code below to create a pipe with constant cross section of a circle. Any suggestions how to accomplish this in netgen.occ? The use of Wire seems to produce a pipe with variable cross section.
// Create a circle representing the pipe cross-section
Handle(Geom_Circle) pipeSection = new Geom_Circle(10.0); // Radius of 10
// Create a BSpline curve defining the pipe bend path
Handle(Geom_BSplineCurve) pipePath = new Geom_BSplineCurve(…);
// Create the pipe surface
Handle(Geom_Surface) pipeSurface = new GeomFill_Pipe(pipeSection, pipePath);