| Author |
Message |
|
v3rd3
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 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 |
|
 |
|
froo
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 23 Jul 2010, 13:40 |
|
Joined: 22 May 2009, 12:13 Posts: 1003
|
thanks v3rd3. 
|
|
| Top |
|
 |
|
froo
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 27 Jul 2010, 16:49 |
|
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 |
|
 |
|
froo
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 28 Jul 2010, 14:30 |
|
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 |
|
 |
|
froo
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 30 Jul 2010, 03:30 |
|
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 |
|
 |
|
froo
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 30 Jul 2010, 03:56 |
|
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 |
|
 |
|
froo
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 30 Jul 2010, 05:11 |
|
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 |
|
 |
|
froo
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 30 Jul 2010, 21:10 |
|
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 |
|
 |
|
Prodigy
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 31 Jul 2010, 01:42 |
|
| Site Admin |
 |
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.. 
_________________ [center]๑۩۞۩๑ prodigy ๑۩۞۩๑
|
|
| Top |
|
 |
|
clintonman
|
Post subject: Re: Nurbs Workspace Plugin Thread Posted: 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!!!  if I'm not supposed to.
_________________ Clinton Reese
www.clintons3d.com
|
|
| Top |
|
 |