Commit 228d4819 authored by Antti Soininen's avatar Antti Soininen
Browse files

Fix issues regarding zero length V3D

Most issues stemmed from trying to normalize a zero length V3D in the
unit tests. We now throw in a few places where an illegal vector
operation is tried out.

Re #24898
parent 3da2a5c6
......@@ -77,8 +77,7 @@ void export_Quat() {
.def("__eq__", &Quat::operator==,(arg("self"), arg("other")))
.def("__ne__", &Quat::operator!=,(arg("self"), arg("other")))
.def("__getitem__",
(const double &(Quat::*)(int)const) & Quat::operator[],
return_value_policy<copy_const_reference>(),
(double (Quat::*)(int)const) & Quat::operator[],
(arg("self"), arg("index")))
.def("__str__", &Quat::toString, arg("self"));
//.def(boost::python::self_ns::str(self));
......
......@@ -16,30 +16,6 @@
</reference-frame>
</defaults>
<!--SOURCE-->
<!--
<component type="moderator">
<location z="-15.0"/>
</component>
<type name="moderator" is="Source"/>
-->
<!--SAMPLE-->
<!--
<component type="sample-position">
<location y="0.0" x="0.0" z="0.0"/>
</component>
<type name="sample-position" is="SamplePos">
<cylinder id="cyl-approx">
<centre-of-bottom-base y="0.0" x="0.0" z="0.0"/>
<axis y="0.0" x="0.0" z="1.0"/>
<radius radius="0.1"/>
<height height="0.3"/>
</cylinder>
<algebra val="cyl-approx"/>
</type>
-->
......@@ -60,24 +36,12 @@
<properties/>
</type>
<!-- Pixel for Detectors-->
<!--
<type is="detector" name="pixel">
<cuboid id="pixel-shape">
<left-front-bottom-point y="-0.001" x="-0.001" z="0.0"/>
<left-front-top-point y="0.001" x="-0.001" z="0.0"/>
<left-back-bottom-point y="-0.001" x="-0.001" z="-0.0001"/>
<right-front-bottom-point y="-0.001" x="0.001" z="0.0"/>
</cuboid>
<algebra val="pixel-shape"/>
</type>
-->
<type is="detector" name="pixel">
<cuboid id="pixel-shape">
<left-front-bottom-point y="-1" x="-1" z="-1"/>
<left-front-bottom-point y="-1" x="-1" z="1"/>
<left-front-top-point y="1" x="-1" z="1"/>
<left-back-bottom-point y="-1" x="-1" z="-1"/>
<right-front-bottom-point y="-1" x="1" z="-1"/>
<right-front-bottom-point y="-1" x="1" z="1"/>
</cuboid>
<algebra val="pixel-shape"/>
</type>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment