Toponaming: Fuse call makeElementRefine; remove deprecated refineSha… (#15897)
* Toponaming: Fuse call makeElementRefine; remove deprecated refineShapeIfActive * Part/Toponaming: import code for MultiFuse::execute() from LS3 * added expected values of testRefine Co-authored-by: Zheng, Lei <realthunder.dev@gmail.com> Co-authored-by: CalligaroV <vincenzo.calligaro@gmail.com> Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
@@ -187,6 +187,12 @@ TEST_F(FeaturePartFuseTest, testRefine)
|
||||
ts.getSubTopoShapes(TopAbs_FACE); // TopAbs_WIRE alternate approach
|
||||
// Assert two boxes, plus redundant faces at the joint.
|
||||
EXPECT_EQ(subs.size(), 14);
|
||||
// 14 Faces
|
||||
// 28 Edges
|
||||
// 16 Vertices
|
||||
// -----------
|
||||
// 58 Elements
|
||||
EXPECT_EQ(_fuse->Shape.getShape().getElementMapSize(), 58);
|
||||
// Act
|
||||
_fuse->Refine.setValue(true);
|
||||
_fuse->execute();
|
||||
@@ -194,6 +200,12 @@ TEST_F(FeaturePartFuseTest, testRefine)
|
||||
subs = ts.getSubTopoShapes(TopAbs_FACE);
|
||||
// Assert we now just have one big box
|
||||
EXPECT_EQ(subs.size(), 6);
|
||||
// 6 Faces
|
||||
// 12 Edges
|
||||
// 8 Vertices
|
||||
// -----------
|
||||
// 58 Elements
|
||||
EXPECT_EQ(_fuse->Shape.getShape().getElementMapSize(), 26);
|
||||
}
|
||||
|
||||
// See FeaturePartCommon.cpp for a history test. It would be exactly the same and redundant here.
|
||||
|
||||
Reference in New Issue
Block a user