Add a few asserts. NFC.
This commit is contained in:
parent
e243396c6f
commit
31f58738f2
@ -289,8 +289,8 @@ void SMesh::MakeFromDifferenceOf(SMesh *a, SMesh *b) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SMesh::MakeFromCopyOf(SMesh *a) {
|
void SMesh::MakeFromCopyOf(SMesh *a) {
|
||||||
int i;
|
ssassert(this != a, "Can't make from copy of self");
|
||||||
for(i = 0; i < a->l.n; i++) {
|
for(int i = 0; i < a->l.n; i++) {
|
||||||
AddTriangle(&(a->l.elem[i]));
|
AddTriangle(&(a->l.elem[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -829,6 +829,7 @@ void SShell::MakeFromRevolutionOf(SBezierLoopSet *sbls, Vector pt, Vector axis,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SShell::MakeFromCopyOf(SShell *a) {
|
void SShell::MakeFromCopyOf(SShell *a) {
|
||||||
|
ssassert(this != a, "Can't make from copy of self");
|
||||||
MakeFromTransformationOf(a,
|
MakeFromTransformationOf(a,
|
||||||
Vector::From(0, 0, 0), Quaternion::IDENTITY, 1.0);
|
Vector::From(0, 0, 0), Quaternion::IDENTITY, 1.0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user