Beispiel #1
0
bool HesperisIO::CreateCurveGeos(CurveGroup * geos, MObject &target)
{
    if(CheckExistingCurves(geos, target)) return true;
    
    MGlobal::displayInfo(MString("create ")+ geos->numCurves()
    +MString(" curves"));
    
    Vector3F * pnts = geos->points();
    unsigned * cnts = geos->counts();
    unsigned i=0;
    for(;i<geos->numCurves();i++) {
        CreateACurve(pnts, cnts[i], target);
        pnts+= cnts[i];
    }
    return true;
}
Beispiel #2
0
MObject HesperisCurveCreator::create(CurveGroup * data, MObject & parentObj,
                       const std::string & nodeName)
{
	MObject res = MObject::kNullObj;
	
	if(CheckExistingCurves(data, parentObj)) return res;
	
	MGlobal::displayInfo(MString("hesperis create ")+ data->numCurves()
    +MString(" curves"));
	
	Vector3F * pnts = data->points();
    unsigned * cnts = data->counts();
    unsigned i=0;
    for(;i<data->numCurves();i++) {
        CreateACurve(pnts, cnts[i], parentObj);
        pnts+= cnts[i];
    }
	
	return res;
}