How to model a channel with mesh

11 次查看(过去 30 天)
Hello.
I am trying to model channel geometry (see red outline below) with mesh that is the shape of a half pipe (see pipe image below). I know what the x,y mesh coordinates are and have code that gives me the x,y location of the channel edges on this plane, but I am struggling to specify the z coordinate at these locations since I need to make it a half circle shape. This channel also has 90 and 180 degree bends in it and I am at a loss on how to calculate/specify the z coordinate for these elements.
I was thinking of trying to use my existing x,y coordinates to obtain reference points in the mesh where I could then use loops to calculate the z value, but my efforts have been fruitless so far.
Does anyone have any suggestions on how to approach this or if there are any functions/resources to help with this?
I'd really appreciate any help.
Channel overview: (note that the red lines indicate the x,y coordinates I can already determine with my existing code. The blue lines are for boundary references and don't contribute to the model otherwise.)
Trying to get this channel shape:

采纳的回答

Chunru
Chunru 2021-7-13
Use some 3D software (such as blender) to create the 3d model and then export to a format matlab can read (eg. stl). Otherwise, you have to work out the math of the coordinates.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by