The protocol develops a three-dimensional (3D) model of a dendritic segment with dendritic spines for modeling synaptic plasticity. The constructed mesh can be used for computational modeling of AMPA receptor trafficking in the long-term synaptic plasticity using the software program Blender with CellBlender and MCell.