View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.3 MB File ID: #37606 Version: 1.3
image thumbnail




24 Jul 2012 (Updated )

Calculates the affine transformations for integration in 2D/3D via the unit triangle/tetrahedron.

| Watch this File

File Information

Calculates the affine transformations needed for integration in 2D/3D via the unit reference triangle/tetrahedron. In 2D the function takes as its input the matrices p,e,t given by initmesh/poimesh (PDEtool toolbox), and calculates the affine transformations for each triangle simultaneously in a vectorized manner. In 3D we use Tetgen meshes.
With a 2009 MacBook Pro laptop, calculating the affine transformations for a mesh of 2 million triangles takes about 1.2 seconds.

We also demonstrate how to use this data to perform fast vectorized calculation of integral values over 2D and 3D meshes.


Fast Assembly Of Stiffness And Matrices In Finite Element Method Using Nodal Elements, Inttet, and Read Tetgenmesh inspired this file.

This file inspired Fast Assembly Of Stiffness And Matrices In Finite Element Method Using Edge Elements.

Required Products Partial Differential Equation Toolbox
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
24 Jul 2012 1.1

The same in 3D too.

25 Mar 2014 1.2

Added a function giving 2d integration quadratures.

26 Sep 2014 1.3

Examples of vectorized calculation of integrals.

Contact us