Multiple symmetry update
 1-15  16-35  36-39

Previous
Next
 From:  TOM (SIRTOM)
7888.36 In reply to 7888.35 
Very nice - makes handling easier !
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
7888.37 In reply to 7888.34 
Hi Michael,

More or less :) i followed your instructions and now here's my 0.2 version of the MirrorRotateHistoryArray2 command.

Now it provides full preview of the resulting geoms and includes also the "Angle" input field.

After some tests it seems that all works fine, but please let me know if you find some bugs.

In your opinion, the javascript code i have written, performs a correct cleanup of the previewed objects, while cancelling the command
or call the main function more then one time (for ex. when the user modify the input values) ?

Here's the code fragment...

code:
	// step 1 : cancel the preview factories, created in the previous call
	if (previewFactories.length > 0) {
		for (i = 0; i < previewFactories.length; i++) {
			previewFactories[i].cancel();
		}
		previewFactories = new Array();
	}


Nice day!

Marco (mkdm).

Image Attachments:
Size: 603.5 KB, Downloaded: 44 times, Dimensions: 1920x1035px
Size: 858 KB, Downloaded: 42 times, Dimensions: 1918x1035px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
7888.38 In reply to 7888.37 
Hi Marco,

> In your opinion, the javascript code i have written, performs a correct cleanup of the previewed
> objects, while cancelling the command
> or call the main function more then one time (for ex. when the user modify the input values) ?

Yes that looks correct - calling factory.cancel() like that should make each factory erase the objects that they had generated on previous calls to factory.update().

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  mkdm
7888.39 In reply to 7888.38 
Hi Michael,

> Yes that looks correct - calling factory.cancel() like that should make each factory erase the objects
> that they had generated on previous calls to factory.update().

Ok, Thanks!

Marco (mkdm).
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-15  16-35  36-39