Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of scoreLight_Advanced by
Diff: blobConfig.cpp
- Revision:
- 19:228430f1350e
- Parent:
- 18:d72935b13858
- Child:
- 22:d87317d7ca91
--- a/blobConfig.cpp	Sat Apr 28 12:35:21 2012 +0000
+++ b/blobConfig.cpp	Sat Apr 28 13:42:14 2012 +0000
@@ -58,6 +58,16 @@
     numBlobs=blobArray.size();
 }
 
+void blobConfig::addOneElasticLoopContractCentralFast() {
+    elasticLoop* pBlob= new elasticLoop();
+    pBlob->createBlob(blobArray.size(), CONTRACT_CENTRAL_FAST, vector2Df(CENTER_AD_MIRROR_X, CENTER_AD_MIRROR_Y), vector2Df(0,0));
+    // add this relaxing loop to the present config:
+    blobArray.push_back(pBlob);
+
+    // update auxiliary variable numBlobs (just for easy reference):
+    numBlobs=blobArray.size();
+}
+
 void blobConfig::addOneElasticContourFollowing() {
 
     elasticLoop* pBlob= new elasticLoop();
    