Import and Render a 3-D Mesh with Fibers

Description

  • This example reads the nodal parameters and element connectivity of a rabbit ventricular mesh and renders the elements, surfaces and fibers.
  • The nodal coordinates and element connectivities are read from tab-delimited spreadsheets.
  • The steps below are saved in a script that can be found in the examples directory on your Continuity client .../continuity/pcty/examples/mesh07/renderFibers.py.py which can be executed automatically with File→Read→Python script

Start Continuity

Set up coordinate system and basis functions

  • Mesh→Edit→Coordinates…

    • Select rectangular cartesian in the Global Coordinates: pop-up menu

    • Click OK to submit Coordinate Form

  • Mesh→Edit→Basis…

    • Choose Hermite Basis Function→3D→Cubic-Cubic-Cubic

    • Click Add Cubic-Cubic-Cubic

    • Verify that the list of basis functions now contains:
      • Cubic-Cubic-Cubic Hermite 3*3*3
      • Cubic-Cubic Hermite 3*3
    • Click OK to submit Basis Form

Read nodal parameters and elements

Calculate and render mesh

  • Mesh→Render→Elements…

    • Click the lines radio button

    • Click Render to display mesh wireframe

    • The mesh should now look similar to the image below.

  • Mesh→Render→Elements…

    • Click the surfaces radio button

    • Click Render to display mesh surfaces

    • The mesh should now look similar to the image below.

 

Pre-built model

This cont6 file contains all data and parameters for this problem: mesh4.cont6