Skip to content

Commit d64a3ef

Browse files
committedNov 8, 2022
Enable nurbs curve noise
1 parent 717af47 commit d64a3ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎src/blurNoise.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,16 @@ MStatus blurNoise::deform(
395395
allNorms[i++] = tnorms[idx];
396396
}
397397
}
398+
else if (outType == MFnData::kNurbsCurve) {
399+
// Get the transform in objects space, and we go in the +- y direction
400+
MMatrix inSpace = wmat.inverse() * mtm.asMatrix();
401+
MVector inSpaceNormD(inSpace[1]);
402+
MFloatVector inSpaceNorm(inSpaceNormD);
403+
404+
for (int i = 0; i < allNorms.length(); ++i){
405+
allNorms[i] = inSpaceNorm;
406+
}
407+
}
398408
else {
399409
// Only mesh and nurbs supported
400410
return MStatus::kFailure;

0 commit comments

Comments
 (0)
Please sign in to comment.