• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MeltyPlayer / MeltyTool / 17574188774

09 Sep 2025 06:45AM UTC coverage: 39.98% (-2.3%) from 42.309%
17574188774

push

github

MeltyPlayer
Okay, hopefully fixed the models now???

5774 of 16361 branches covered (35.29%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

935 existing lines in 47 files now uncovered.

24391 of 59090 relevant lines covered (41.28%)

74782.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/FinModelUtility/Fin/Fin/src/scene/instance/SceneObjectInstanceImpl.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Numerics;
5

6
using fin.model;
7

8
namespace fin.scene.instance;
9

10
public partial class SceneInstanceImpl {
11
  private class SceneObjectInstanceImpl(IReadOnlySceneObject sceneObject)
×
12
      : ISceneObjectInstance {
13
    ~SceneObjectInstanceImpl() => this.ReleaseUnmanagedResources_();
×
14

15
    public void Dispose() {
×
16
      this.ReleaseUnmanagedResources_();
×
17
      GC.SuppressFinalize(this);
×
18
    }
×
19

20
    private void ReleaseUnmanagedResources_() {
×
21
      foreach (var model in this.Models) {
×
22
        model.Dispose();
×
23
      }
×
24
    }
×
25

26
    public IReadOnlySceneObject Definition => sceneObject;
×
27

28
    public Vector3 Position { get; private set; } = sceneObject.Position;
×
29
    public IRotation Rotation { get; } = sceneObject.Rotation;
×
30
    public Vector3 Scale { get; private set; } = sceneObject.Scale;
×
31

32
    public ISceneObjectInstance SetPosition(float x, float y, float z) {
×
33
      this.Position = new Vector3(x, y, z);
×
34
      return this;
×
35
    }
×
36

37
    public ISceneObjectInstance SetRotationRadians(float xRadians,
38
                                                   float yRadians,
39
                                                   float zRadians) {
×
40
      this.Rotation.SetRadians(
×
41
          xRadians,
×
42
          yRadians,
×
43
          zRadians
×
44
      );
×
45
      return this;
×
46
    }
×
47

48
    public ISceneObjectInstance SetRotationDegrees(float xDegrees,
49
                                                   float yDegrees,
50
                                                   float zDegrees) {
×
51
      this.Rotation.SetDegrees(
×
52
          xDegrees,
×
53
          yDegrees,
×
54
          zDegrees
×
55
      );
×
56
      return this;
×
57
    }
×
58

59
    public ISceneObjectInstance SetScale(float x, float y, float z) {
×
60
      this.Scale = new Vector3(x, y, z);
×
61
      return this;
×
62
    }
×
63

64
    public IReadOnlyList<ISceneModelInstance> Models { get; }
×
65
      = sceneObject.Models
×
66
                   .Select(m => new SceneModelInstanceImpl(m))
×
67
                   .ToArray();
×
68

69
    public void Tick() {
×
70
      foreach (var component in sceneObject.Components) {
×
71
        if (component is ISceneNodeTickComponent tickComponent) {
×
72
          tickComponent.Tick(this);
×
73
        }
×
UNCOV
74
      }
×
UNCOV
75
    }
×
76

77

UNCOV
78
    private float viewerScale_ = 1;
×
79

80
    public float ViewerScale {
81
      get => this.viewerScale_;
×
82
      set {
×
83
        this.viewerScale_ = value;
×
84
        foreach (var model in this.Models) {
×
85
          model.ViewerScale = this.viewerScale_;
×
UNCOV
86
        }
×
UNCOV
87
      }
×
88
    }
89
  }
90
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc