Change curve object to new source pattern
Fixed a bug with single item input it combine
This commit is contained in:
parent
4aa848fc63
commit
50d77638c7
7 changed files with 264 additions and 55 deletions
|
|
@ -530,6 +530,11 @@ namespace MatterControl.Tests.MatterControl
|
|||
|
||||
[Test, Category("InteractiveScene")]
|
||||
public void AabbCalculatedCorrectlyForCurvedFitObjects()
|
||||
{
|
||||
DoAabbCalculatedCorrectlyForCurvedFitObjects();
|
||||
}
|
||||
|
||||
public async void DoAabbCalculatedCorrectlyForCurvedFitObjects()
|
||||
{
|
||||
var root = new Object3D();
|
||||
var cube = CubeObject3D.Create(20, 20, 20);
|
||||
|
|
@ -539,9 +544,9 @@ namespace MatterControl.Tests.MatterControl
|
|||
fit.SizeY = 20;
|
||||
fit.SizeZ = 20;
|
||||
|
||||
var curve = new CurveObject3D();
|
||||
var curve = new CurveObject3D_2();
|
||||
curve.Children.Add(fit);
|
||||
curve.Invalidate(new InvalidateArgs(curve, InvalidateType.Properties));
|
||||
await curve.Rebuild();
|
||||
root.Children.Add(curve);
|
||||
var rootAabb = root.GetAxisAlignedBoundingBox();
|
||||
Assert.IsTrue(rootAabb.Equals(new AxisAlignedBoundingBox(new Vector3(-25, 4, -10), new Vector3(25, 15, 10)), 1.0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue