teco-kit/PointAndControl

View on GitHub
IGS/Room3DView.xaml.cs

Summary

Maintainability
F
6 days
Test Coverage

File Room3DView.xaml.cs has 510 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Media;
Severity: Major
Found in IGS/Room3DView.xaml.cs - About 1 day to fix

    Method createBody has 91 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public void createBody(Body body)
            {
                //Decide if one skeleton have to be replaced, created, or is already existing
                int IDPlace = -1;
                bool IDfound = false;
    Severity: Major
    Found in IGS/Room3DView.xaml.cs - About 3 hrs to fix

      Method initBodyBones has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              private void initBodyBones(int bodyNr, List<Point3D> pList, List<Point3D> midSection)
              {
      
      
                  //from right to center;
      Severity: Minor
      Found in IGS/Room3DView.xaml.cs - About 1 hr to fix

        Method replaceBodyBones has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                private void replaceBodyBones(int bodyNr, List<Point3D> pList, List<Point3D> midSection)
                {
        
                    for (int i = 0; i < 4; i++)
                    {
        Severity: Minor
        Found in IGS/Room3DView.xaml.cs - About 1 hr to fix

          Method creatTriangleModelRoom has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  private ModelVisual3D creatTriangleModelRoom(Point3D p0, Point3D p1, Point3D p2, bool site)
                  {
                      ModelVisual3D group = new ModelVisual3D();
                      MeshGeometry3D triangleMesh = new MeshGeometry3D();
                      Vector3D normal = new Vector3D();
          Severity: Minor
          Found in IGS/Room3DView.xaml.cs - About 1 hr to fix

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

                    {
                        this.transformator = transformator;
                        skelList = new List<ModelVisual3D>();
                        boneListInitList = new List<Boolean>();
                        IDList = new List<long>();
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 1 other location - About 4 hrs to fix
            IGS/Room3DView.xaml.cs on lines 121..151

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 297.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 2 locations. Consider refactoring.
            Open

                    {
                        this.transformator = transformator;
                        skelList = new List<ModelVisual3D>();
                        boneListInitList = new List<Boolean>();
                        IDList = new List<long>();
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 1 other location - About 4 hrs to fix
            IGS/Room3DView.xaml.cs on lines 88..118

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 297.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 4 locations. Consider refactoring.
            Open

                        for (int i = 15; i < 19; i++)
                        {
                            boneListsList[bodyNr].Add(createBones(pList[i], pList[i + 1]));
                            skelList[bodyNr].Children.Add(boneListsList[bodyNr][i]);
                        }
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 3 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 639..644
            IGS/Room3DView.xaml.cs on lines 645..649
            IGS/Room3DView.xaml.cs on lines 659..663

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 103.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 4 locations. Consider refactoring.
            Open

                        for (int i = 0; i < 4; i++)
                        {
                            boneListsList[bodyNr].Add(createBones(pList[i], pList[i + 1]));
                            skelList[bodyNr].Children.Add(boneListsList[bodyNr][i]);
            
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 3 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 645..649
            IGS/Room3DView.xaml.cs on lines 659..663
            IGS/Room3DView.xaml.cs on lines 665..669

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 103.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 4 locations. Consider refactoring.
            Open

                        for (int i = 11; i < 15; i++)
                        {
                            boneListsList[bodyNr].Add(createBones(pList[i], pList[i + 1]));
                            skelList[bodyNr].Children.Add(boneListsList[bodyNr][i]);
                        }
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 3 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 639..644
            IGS/Room3DView.xaml.cs on lines 645..649
            IGS/Room3DView.xaml.cs on lines 665..669

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 103.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 4 locations. Consider refactoring.
            Open

                        for (int i = 4; i < 8; i++)
                        {
                            boneListsList[bodyNr].Add(createBones(pList[i], pList[i + 1]));
                            skelList[bodyNr].Children.Add(boneListsList[bodyNr][i]);
                        }
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 3 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 639..644
            IGS/Room3DView.xaml.cs on lines 659..663
            IGS/Room3DView.xaml.cs on lines 665..669

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 103.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D head = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.Head].Position.X, body.Joints[JointType.Head].Position.Y, body.Joints[JointType.Head].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D left_knee = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.KneeLeft].Position.X, body.Joints[JointType.KneeLeft].Position.Y, body.Joints[JointType.KneeLeft].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D right_elbow = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.ElbowRight].Position.X, body.Joints[JointType.ElbowRight].Position.Y, body.Joints[JointType.ElbowRight].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D left_hand = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.HandLeft].Position.X, body.Joints[JointType.HandLeft].Position.Y, body.Joints[JointType.HandLeft].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D left_hip = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.HipLeft].Position.X, body.Joints[JointType.HipLeft].Position.Y, body.Joints[JointType.HipLeft].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D spine = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.SpineMid].Position.X, body.Joints[JointType.SpineMid].Position.Y, body.Joints[JointType.SpineMid].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D right_hip = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.HipRight].Position.X, body.Joints[JointType.HipRight].Position.Y, body.Joints[JointType.HipRight].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D right_ankle = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.AnkleRight].Position.X, body.Joints[JointType.AnkleRight].Position.Y, body.Joints[JointType.AnkleRight].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D left_ankle = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.AnkleLeft].Position.X, body.Joints[JointType.AnkleLeft].Position.Y, body.Joints[JointType.AnkleLeft].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D right_wrist = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.WristRight].Position.X, body.Joints[JointType.WristRight].Position.Y, body.Joints[JointType.WristRight].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D right_knee = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.KneeRight].Position.X, body.Joints[JointType.KneeRight].Position.Y, body.Joints[JointType.KneeRight].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D right_hand = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.HandRight].Position.X, body.Joints[JointType.HandRight].Position.Y, body.Joints[JointType.HandRight].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D left_shoulder = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.ShoulderLeft].Position.X, body.Joints[JointType.ShoulderLeft].Position.Y, body.Joints[JointType.ShoulderLeft].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D left_wrist = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.WristLeft].Position.X, body.Joints[JointType.WristLeft].Position.Y, body.Joints[JointType.WristLeft].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D center_shoulder = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.SpineShoulder].Position.X, body.Joints[JointType.SpineShoulder].Position.Y, body.Joints[JointType.SpineShoulder].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D left_foot = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.FootLeft].Position.X, body.Joints[JointType.FootLeft].Position.Y, body.Joints[JointType.FootLeft].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D center_hip = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.SpineBase].Position.X, body.Joints[JointType.SpineBase].Position.Y, body.Joints[JointType.SpineBase].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D left_elbow = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.ElbowLeft].Position.X, body.Joints[JointType.ElbowLeft].Position.Y, body.Joints[JointType.ElbowLeft].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D right_shoulder = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.ShoulderRight].Position.X, body.Joints[JointType.ShoulderRight].Position.Y, body.Joints[JointType.ShoulderRight].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 442..442
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 20 locations. Consider refactoring.
            Open

                        Point3D right_foot = transformator.TransformPoint3D(new Point3D(body.Joints[JointType.FootRight].Position.X, body.Joints[JointType.FootRight].Position.Y, body.Joints[JointType.FootRight].Position.Z));
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 19 other locations - About 1 hr to fix
            IGS/Room3DView.xaml.cs on lines 433..433
            IGS/Room3DView.xaml.cs on lines 434..434
            IGS/Room3DView.xaml.cs on lines 435..435
            IGS/Room3DView.xaml.cs on lines 436..436
            IGS/Room3DView.xaml.cs on lines 437..437
            IGS/Room3DView.xaml.cs on lines 438..438
            IGS/Room3DView.xaml.cs on lines 439..439
            IGS/Room3DView.xaml.cs on lines 440..440
            IGS/Room3DView.xaml.cs on lines 441..441
            IGS/Room3DView.xaml.cs on lines 443..443
            IGS/Room3DView.xaml.cs on lines 444..444
            IGS/Room3DView.xaml.cs on lines 445..445
            IGS/Room3DView.xaml.cs on lines 446..446
            IGS/Room3DView.xaml.cs on lines 447..447
            IGS/Room3DView.xaml.cs on lines 448..448
            IGS/Room3DView.xaml.cs on lines 449..449
            IGS/Room3DView.xaml.cs on lines 450..450
            IGS/Room3DView.xaml.cs on lines 451..451
            IGS/Room3DView.xaml.cs on lines 452..452

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 90.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 4 locations. Consider refactoring.
            Open

                        for (int i = 0; i < 4; i++)
                        {
                            boneListsList[bodyNr][i].Point1 = pList[i];
                            boneListsList[bodyNr][i].Point2 = pList[i + 1];
                        }
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 3 other locations - About 50 mins to fix
            IGS/Room3DView.xaml.cs on lines 693..697
            IGS/Room3DView.xaml.cs on lines 710..714
            IGS/Room3DView.xaml.cs on lines 716..720

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 82.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 4 locations. Consider refactoring.
            Open

                        for (int i = 11; i < 15; i++)
                        {
                            boneListsList[bodyNr][i].Point1 = pList[i];
                            boneListsList[bodyNr][i].Point2 = pList[i + 1];
                        }
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 3 other locations - About 50 mins to fix
            IGS/Room3DView.xaml.cs on lines 688..692
            IGS/Room3DView.xaml.cs on lines 693..697
            IGS/Room3DView.xaml.cs on lines 716..720

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 82.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 4 locations. Consider refactoring.
            Open

                        for (int i = 4; i < 8; i++)
                        {
                            boneListsList[bodyNr][i].Point1 = pList[i];
                            boneListsList[bodyNr][i].Point2 = pList[i + 1];
                        }
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 3 other locations - About 50 mins to fix
            IGS/Room3DView.xaml.cs on lines 688..692
            IGS/Room3DView.xaml.cs on lines 710..714
            IGS/Room3DView.xaml.cs on lines 716..720

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 82.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Identical blocks of code found in 4 locations. Consider refactoring.
            Open

                        for (int i = 15; i < 19; i++)
                        {
                            boneListsList[bodyNr][i].Point1 = pList[i];
                            boneListsList[bodyNr][i].Point2 = pList[i + 1];
                        }
            Severity: Major
            Found in IGS/Room3DView.xaml.cs and 3 other locations - About 50 mins to fix
            IGS/Room3DView.xaml.cs on lines 688..692
            IGS/Room3DView.xaml.cs on lines 693..697
            IGS/Room3DView.xaml.cs on lines 710..714

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 82.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                        foreach (WallProjectionSample s in smoothed)
                        {
            
                            Material mat = new DiffuseMaterial(new SolidColorBrush(Colors.Blue));
                            addSampleView(new Point3D(s.x, s.y, s.z), mat);
            Severity: Minor
            Found in IGS/Room3DView.xaml.cs and 1 other location - About 40 mins to fix
            IGS/Room3DView.xaml.cs on lines 544..550

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 68.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                        foreach (WallProjectionSample s in nonSmoothed)
                        {
                            
                            Material mat = new DiffuseMaterial(new SolidColorBrush(Colors.Red));
                            addSampleView(new Point3D(s.x, s.y, s.z), mat);
            Severity: Minor
            Found in IGS/Room3DView.xaml.cs and 1 other location - About 40 mins to fix
            IGS/Room3DView.xaml.cs on lines 552..558

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 68.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                        Point3D position = new Point3D(
                            Convert.ToDouble(cameraPositionXTextBox.Text),
                            Convert.ToDouble(cameraPositionYTextBox.Text),
                            Convert.ToDouble(cameraPositionZTextBox.Text));
            Severity: Minor
            Found in IGS/Room3DView.xaml.cs and 1 other location - About 30 mins to fix
            IGS/Room3DView.xaml.cs on lines 270..273

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 62.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

                        Vector3D lookDirection = new Vector3D(
                            Convert.ToDouble(lookAtXTextBox.Text),
                            Convert.ToDouble(lookAtYTextBox.Text),
                            Convert.ToDouble(lookAtZTextBox.Text));
            Severity: Minor
            Found in IGS/Room3DView.xaml.cs and 1 other location - About 30 mins to fix
            IGS/Room3DView.xaml.cs on lines 266..269

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 62.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            There are no issues that match your filters.

            Category
            Status