From 96291317fc0fe0090bb7f72ae892788365eeb6f5 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Tue, 10 Mar 2015 03:15:42 -0400 Subject: [PATCH] fixed part layout for freeform octa --- js/fea/DmaCell.js | 2 +- js/fea/DmaCellOcta.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/js/fea/DmaCell.js b/js/fea/DmaCell.js index a6076343..2844f1bf 100644 --- a/js/fea/DmaCell.js +++ b/js/fea/DmaCell.js @@ -99,7 +99,7 @@ DMACell.prototype._setCellMeshVisibility = function(visibility){ /////////////////////////////////META////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////// -DMACell.prototype_initParts = function(){ +DMACell.prototype._initParts = function(){ return [];//override in subclasses }; diff --git a/js/fea/DmaCellOcta.js b/js/fea/DmaCellOcta.js index b1e5e88c..7ded37a9 100644 --- a/js/fea/DmaCellOcta.js +++ b/js/fea/DmaCellOcta.js @@ -89,6 +89,14 @@ DMAFreeFormOctaCell.prototype.calcHighlighterPosition = function(face){ return {index: _.clone(this.indices), direction:direction, position:position}; }; +DMAFreeFormOctaCell.prototype._initParts = function(){ + var parts = []; + for (var i=0;i<3;i++){ + parts.push(new DMATrianglePart(i, this)); + } + return parts; +}; + DMAFreeFormOctaCell.prototype.getType = function(){ return "octa"; }; -- GitLab