It is currently 07 Sep 2010, 00:08


Post a new topicPost a reply Page 5 of 11   [ 105 posts ]
Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 11  Next
Author Message
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 23 Jul 2010, 06:57 
Master Chief Petty Officer

Joined: 21 May 2009, 20:04
Posts: 480
Glad to hear that issue got resolved. I know what a toll these things can be.

Good health to you both.


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 23 Jul 2010, 13:40 
Lieutenant Commander

Joined: 22 May 2009, 12:13
Posts: 1003
thanks v3rd3. :bananahi:


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 27 Jul 2010, 16:49 
Lieutenant Commander

Joined: 22 May 2009, 12:13
Posts: 1003
Ok; I reviewed the OBJ package code. It would actually be better to start with the Topology example in the SDK, since it has the basics: an encapsulator, transform, and sphere node. I can replace the sphere node with the nurbs node, and go from there.

It is much cleaner, safer, and easier, to Add code, than it is, to Remove code.


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 28 Jul 2010, 14:30 
Lieutenant Commander

Joined: 22 May 2009, 12:13
Posts: 1003
Ok got the topology example configured, so the sphere is converted to an editable shape WooHoo!

Code:
// Make copy of the code set
   //Find Space3D package which handles 3D scene.
   CComPtr<IRsUnknownPackage> spUnkPck;
   spKernel->FindPackage(DEF_GUIDNAME(CRpSpace3DPck), &spUnkPck);
   CComQIPtr<IRpSpace3DPck> spSpace3d = spUnkPck;
   if (!spSpace3d) {
      //Space3d is not registered
      return E_FAIL;
   };

   CComPtr<IRfEditableMeshSet> ppFn;
   spSpace3d->CreateEditableMeshFnSet(&ppFn);
   CComQIPtr<IRsNode> daEncaps = spNewObjEncaps;
   CComPtr<IRsNode> dodo;// = spNewObjEncaps;
   ppFn->ConvertToEditableMesh( daEncaps, &dodo );


Next step would be, to attach the output mesh connector of the editable shape, to the input mesh of another node inside the encapsulator. By doing this, we have all the 'edit' streams we need for manipulation.

The sphere node will be replaced by the control grid/mesh for the nurbs surface.


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 30 Jul 2010, 03:30 
Lieutenant Commander

Joined: 22 May 2009, 12:13
Posts: 1003
I added a node inside the topology example. Actually, for now, I have a modified 'Height field' example node, added inside the Topology Example node. The height field node is augmented with an Input Mesh connector. The height field node will be changed to something like 'Nurbs Modifier'. I don't need the height and width segment connectors. Just the input mesh connector really.

So that's the first step completed: getting a 'mesh editor' type node into the encapsulator.
Next up is connecting the editable shape and this mesh editor node, using the mesh connectors.
When I have done that, I have the edit streams.


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 30 Jul 2010, 03:56 
Lieutenant Commander

Joined: 22 May 2009, 12:13
Posts: 1003
Connected.
Need to un-export the original mesh connector, and export the mesh connector from the
new nurbs modifier node.


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 30 Jul 2010, 05:11 
Lieutenant Commander

Joined: 22 May 2009, 12:13
Posts: 1003
Done. All connections are in place and the mesh con exported from the nurbs modifier.
Time to check streams.


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 30 Jul 2010, 21:10 
Lieutenant Commander

Joined: 22 May 2009, 12:13
Posts: 1003
Ok; asked a lot of questions, got a lot of answers... and one: OMG NO DON'T DO THAT!!!
So now it's time to research, then implement.


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 31 Jul 2010, 01:42 
Site Admin
User avatar

Joined: 21 May 2009, 14:46
Posts: 635
Location: Uruguay
Cool to follow you froo :) you are a real blogger! hahhaha

Keep in touch amigo, and keep your research quite interesting.. :worship:

_________________
[center]๑۩۞۩๑ prodigy ๑۩۞۩๑


Top
 Profile  
 
 Post subject: Re: Nurbs Workspace Plugin Thread
PostPosted: 31 Jul 2010, 02:50 
Master Chief Petty Officer

Joined: 21 May 2009, 21:08
Posts: 361
Location: California
froo wrote:
...... and one: OMG NO DON'T DO THAT!!!
.....

How about sharing that one? I don't want to do THAT!!! :shock: if I'm not supposed to.

_________________
Clinton Reese

www.clintons3d.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 5 of 11   [ 105 posts ]
Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 11  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net