Skip to content

triangular prism mesh? #722

Answered by marcomusy
RyanConway91 asked this question in Q&A
Oct 26, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Mesh is meant to represent polygonal meshes.
TetMesh for trtrahedral meshes.
UGrid is for other cases or mixed types as in your case, it can be created with:

import vedo
ugrid =  vedo.UGrid([points, cells, celltypes])

For a prism (wedge) celltype must be 13.

 The wedge is defined by the six points (0-5) where (0,1,2) is the base of the wedge which, 
using the right hand rule, forms a triangle whose normal points outward (away from the triangular face (3,4,5)).

https://vtk.org/doc/nightly/html/classvtkWedge.html#details

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RyanConway91
Comment options

@RyanConway91
Comment options

Answer selected by RyanConway91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants