DLR-SC / tigl

@@ -20,6 +20,7 @@
Loading
20 20
#include "CControlSurfaceBorderBuilder.h"
21 21
#include "CCPACSControlSurfaceOuterShapeTrailingEdge.h"
22 22
#include "CCPACSTrailingEdgeDevice.h"
23 +
#include "tigletaxsifunctions.h"
23 24
24 25
#include "CNamedShape.h"
25 26
#include "Debugging.h"
@@ -106,8 +107,10 @@
Loading
106 107
CTiglControlSurfaceBorderCoordinateSystem CCPACSControlSurfaceBorderTrailingEdge::GetCoordinateSystem(gp_Vec upDir) const
107 108
{
108 109
    const auto& segment = ComponentSegment(*this);
109 -
    gp_Pnt pLE = segment.GetPoint(getEtaLE(), getXsiLE());
110 -
    gp_Pnt pTE = segment.GetPoint(getEtaTE(), getXsiTE());
110 +
    auto& etaLE = GetEtaLE();
111 +
    auto& etaTE = GetEtaTE().is_initialized()? GetEtaTE().value() : GetEtaLE();
112 +
    gp_Pnt pLE = segment.GetPoint(transformEtaToCSOrTed(etaLE, *m_uidMgr), getXsiLE());
113 +
    gp_Pnt pTE = segment.GetPoint(transformEtaToCSOrTed(etaTE, *m_uidMgr), getXsiTE());
111 114
112 115
    CTiglControlSurfaceBorderCoordinateSystem coords(pLE, pTE, upDir);
113 116
    return coords;

@@ -24,6 +24,7 @@
Loading
24 24
#include "Debugging.h"
25 25
#include "generated/CPACSCutOutControlPoint.h"
26 26
#include "CControlSurfaceBorderBuilder.h"
27 +
#include "tigletaxsifunctions.h"
27 28
28 29
#include <gp_Vec.hxx>
29 30
#include <BRepOffsetAPI_ThruSections.hxx>
@@ -125,10 +126,10 @@
Loading
125 126
        throw CTiglError("Cutout border of '" + GetParent()->GetUID() + "' requires etaLE and etaTE values to proceed.");
126 127
    }
127 128
128 -
    double lEta = cutOutBorder->GetEtaLE_choice2().value().GetEta();
129 -
    double lXsi = outerShapeBorder->getXsiLE();
130 -
    double tEta = cutOutBorder->GetEtaTE_choice2().value().GetEta();
131 -
    double tXsi = outerShapeBorder->getXsiTE();
129 +
    double lEta = transformEtaToCSOrTed(cutOutBorder->GetEtaLE_choice2().value(), *m_uidMgr);
130 +
    double lXsi = transformXsiToCSOrTed(outerShapeBorder->GetXsiLE(), *m_uidMgr);
131 +
    double tEta = transformEtaToCSOrTed(cutOutBorder->GetEtaTE_choice2().value(), *m_uidMgr);
132 +
    double tXsi = outerShapeBorder->getXsiTE(); // this is always 1.0
132 133
133 134
    const auto& segment = ComponentSegment(*this);
134 135
    gp_Pnt pLE = segment.GetPoint(lEta, lXsi);
Files Coverage
src 69.62%
Project Totals (289 files) 69.62%
1
codecov:
2
  require_ci_to_pass: yes
3

4
coverage:
5
  precision: 2
6
  round: down
7
  range: "25...100"
8

9
parsers:
10
  gcov:
11
    branch_detection:
12
      conditional: yes
13
      loop: yes
14
      method: no
15
      macro: no
16

17
comment:
18
  layout: "reach,diff,flags,tree"
19
  behavior: default
20
  require_changes: no
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading