How to construct one dimensional curved plane curve?

More
2 years 1 month ago - 2 years 1 month ago #4539 by Jiashun
Hi all, 
I have a problem in generating plane curve mesh of high order, for example, a curved circle mesh (only the circle boundary).
For curved mesh of 2 dimensional surface, I can first create a geo object, then use perfstepsend=MeshingStep.MESHSURFACE to generate the surface mesh and finally use Curve().
But for SplineGeometry, for example,

geo = SplineGeometry()
pnts =[(0,0),
(1,0),
(1,0.5),
(1,1),
(0.5,1),
(0,1)]
p1,p2,p3,p4,p5,p6 = [geo.AppendPoint(*pnt) for pnt in pnts]
curves = ["line",p1,p2],"bottom"], [["line",p2,p3],"right"], [["spline3",p3,p4,p5],"curve"], [["line",p5,p6],"top"], [["line",p6,p1],"left"
[geo.Append(c,bc=bc) for c,bc in curves]
ngmesh = geo.GenerateMesh(maxh=0.2)
Is it possible to let the meshing process stop just after the boundary mesh is generated like the surface case?

Or is there other alternative approaches to generating the curved 1d curve mesh in plane?

Thanks a lot for your time.
Last edit: 2 years 1 month ago by Jiashun.
Time to create page: 0.099 seconds