THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/10/2006 at 13:05, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6
Platform: Windows ;
Language(s) : C++ ;
---------
It`s seems that MeltEdgeBetween is not work.
I have a very simple model. And a plugin-generator, which performs this function:
Bool chk ;
bool aaaa( BaseObject *obj)
{
Modeling *krnl = Modeling::Alloc() ;
if( ! krnl)
return false ;
chk = krnl->InitObject( obj) ;
if( ! chk)
return false ;
LONG cnt ;
LONG *ngns = krnl->GetEdgeNgons( obj, 2, 8, cnt) ;
chk = krnl->IsValidEdge( obj, ngns[0], 2, 8) ;
if( ! chk)
return false ;
chk = krnl->IsValidEdge( obj, ngns[1], 2, 8) ;
if( ! chk)
return false ;
chk = krnl->MeltEdgeBetween( obj, ngns[0], ngns[1], 2, 8) ;
if( ! chk)
return false ;
krnl->Commit() ;
return true ;
}
numbers 2 and 8 is real numbers I find in structure manager. They belong to one edge.
And this function breakes on last but one line. Functions IsValidEdge returns true, but MeltEdgeBetween function return false.
Generator is ok. With other modeling function it works well.
In some cases MeltEdgeBetween returns true, but then krnl->Commit() crushes cinema.