24 plucker_coordinates_abscissa_ =
nullptr;
25 plucker_coordinates_triangle_.resize(3,
nullptr);
26 plucker_products_.resize(3,
nullptr);
37 plucker_coordinates_abscissa_ =
new Plucker(abscissa.
node(0),
38 abscissa.
node(1),
true);
39 scale_line_=plucker_coordinates_abscissa_->scale();
41 plucker_coordinates_triangle_.resize(3);
42 plucker_products_.resize(3);
43 scale_triangle_=std::numeric_limits<double>::max();
44 for(
unsigned int side = 0; side < 3; side++){
48 scale_triangle_ = std::min( scale_triangle_, plucker_coordinates_triangle_[side]->scale());
51 plucker_products_[side] =
new double((*plucker_coordinates_abscissa_)*(*plucker_coordinates_triangle_[side]));
57 if(plucker_coordinates_abscissa_ !=
nullptr)
58 delete plucker_coordinates_abscissa_;
60 for(
unsigned int side = 0; side < RefElement<2>::n_sides; side++){
61 if(plucker_products_[side] !=
nullptr)
62 delete plucker_products_[side];
63 if(plucker_coordinates_triangle_[side] !=
nullptr)
64 delete plucker_coordinates_triangle_[side];
71 for(
unsigned int side = 0; side < RefElement<2>::n_sides; side++)
73 plucker_products_[side] =
nullptr;
74 plucker_coordinates_triangle_[side] =
nullptr;
76 plucker_coordinates_abscissa_ =
nullptr;
82 plucker_coordinates_abscissa_->compute();
83 scale_line_=plucker_coordinates_abscissa_->scale();
88 scale_triangle_=std::numeric_limits<double>::max();
90 for(
unsigned int side = 0; side < RefElement<2>::n_sides; side++){
91 plucker_coordinates_triangle_[side]->compute();
92 scale_triangle_ = std::min( scale_triangle_, plucker_coordinates_triangle_[side]->scale());
94 ASSERT_DBG(plucker_products_[side]).error(
"Undefined plucker product.");
96 *plucker_products_[side] = (*plucker_coordinates_abscissa_)*(*plucker_coordinates_triangle_[side]);
109 int sign = (t < tol ? -2 : (t > 1+tol ? +2 : 0) );
110 if (std::abs(t) <= tol){
114 else if (std::abs(1-t) <= tol){
143 (local[0])(local[1])(local[2]);
147 arma::vec3 local_triangle({local[2],local[1],local[0]});
153 arma::vec3 u = plucker_coordinates_abscissa_->get_u_vector();
158 if(fabs((
double)u[1]) > fabs(max)){ max = u[1]; i = 1;}
159 if(fabs((
double)u[2]) > fabs(max)){ max = u[2]; i = 2;}
162 double isect_coord_i =
168 double t = (-plucker_coordinates_abscissa_->point(0)[i] + isect_coord_i)/max;
170 arma::vec2 local_abscissa = {1-t, t};
189 compute_plucker_products();
198 signed_plucker_product(1),
199 signed_plucker_product(2)};
200 double w_sum = w[0] + w[1] + w[2];
202 unsigned int n_positive = 0;
203 unsigned int n_negative = 0;
204 unsigned int zero_idx_sum =0;
209 double scaled_epsilon =
geometry_epsilon*scale_line_*scale_triangle_*scale_triangle_;
210 if(std::fabs(w_sum) > scaled_epsilon) {
212 for (
unsigned int i=0; i < 3; i++) {
227 for (
unsigned int i=0; i < 3; i++) {
229 if (w[i] > scaled_epsilon || w[i] < -scaled_epsilon) n_negative++;
241 if (n_positive > 0) {
243 compute_plucker(IP, w);
245 unsigned int non_zero_idx=0;
246 if (n_positive == 2) {
250 non_zero_idx = (zero_idx_sum + 1) % 3;
252 else if (n_positive == 1) {
256 non_zero_idx = 3-zero_idx_sum;
284 int sign = check_abscissa_topology(IP);
286 if(std::abs(sign) > 1)
return 0;
294 return compute_final_in_plane(IP12s);
322 arma::vec3 A = plucker_coordinates_abscissa_->point(0);
324 arma::vec3 U = plucker_coordinates_abscissa_->get_u_vector();
328 arma::vec3 V = plucker_coordinates_triangle_[side]->get_u_vector();
346 unsigned int max_index = 0;
347 double maximum = fabs(Det[0]);
348 if(fabs((
double)Det[1]) > maximum){
349 maximum = fabs(Det[1]);
352 if(fabs((
double)Det[2]) > maximum){
353 maximum = fabs(Det[2]);
367 unsigned int i = (max_index+1)%3,
370 double DetX = -K[i]*V[j] + K[j]*V[i];
371 double DetY = -K[i]*U[j] + K[j]*U[i];
373 double s = DetX/Det[max_index];
374 double t = DetY/Det[max_index];
385 if(t >= -tol && t <= 1+tol){
394 arma::vec2 local_abscissa({1-s, s});
415 for(
unsigned int i = 0; i < 3;i++){
417 if(IP12s.size() == 2)
break;
420 if (compute_degenerate(i,IP))
422 uint s = check_abscissa_topology(IP);
431 if(IP12s.size() == 0)
return IP12s.size();
434 if(IP12s.size() == 1){
435 if(std::abs(sign[0]) > 1) IP12s.pop_back();
448 if (sign[0] == sign[1] && std::abs(sign[0]) > 1) {
454 if(IP12s[0].local_bcoords_A()[1] > IP12s[1].local_bcoords_A()[1]){
460 const int ip_sign[] = {-2, +2};
461 for(
unsigned int ip=0; ip<2; ip++) {
463 if (sign[ip] == ip_sign[ip]) {
465 correct_triangle_ip_topology(
double(ip), ip, IP12s);
466 IP12s[ip].set_topology_A(ip, 0);
471 if(IP12s[0].topology_equal(IP12s[1])){
483 ips[0].local_bcoords_B(), ips[1].local_bcoords_B(),
484 ips[0].local_bcoords_A()[1], ips[1].local_bcoords_A()[1], t);
485 arma::vec2 local_abscissa({1 - t, t});
486 ips[ip].set_coordinates(local_abscissa, local_tria);
491 std::pair<unsigned int, unsigned int> zeros =
504 default: ips[ip].set_topology_B(0,2);
515 os <<
"\tPluckerCoordinates Abscissa[0]";
516 if(plucker_coordinates_abscissa_ ==
nullptr){
517 os <<
"NULL" << endl;
519 os << plucker_coordinates_abscissa_;
521 for(
unsigned int i = 0; i < 3;i++){
522 os <<
"\tPluckerCoordinates Triangle[" << i <<
"]";
523 if(plucker_coordinates_triangle_[i] ==
nullptr){
524 os <<
"NULL" << endl;
526 os << plucker_coordinates_triangle_[i];
552 for(
unsigned int side = 0; side < RefElement<2>::n_sides; side++){
561 for(
unsigned int p = 0; p < 3*RefElement<2>::n_sides; p++){
569 for(
unsigned int side = 0; side < 2*RefElement<2>::n_sides; side++)
570 CI12[side].clear_all();
573 for(
unsigned int side = 0; side < 2*RefElement<2>::n_sides; side++){
574 if(plucker_coordinates_[side] !=
nullptr)
575 delete plucker_coordinates_[side];
578 for(
unsigned int p = 0; p < 3*RefElement<2>::n_sides; p++){
579 if(plucker_products_[p] !=
nullptr)
580 delete plucker_products_[p];
587 for(
unsigned int side = 0; side < 2*RefElement<2>::n_sides; side++)
589 plucker_coordinates_[side] =
nullptr;
591 for(
unsigned int p = 0; p < 3*RefElement<2>::n_sides; p++){
592 plucker_products_[p] =
nullptr;
599 for(
unsigned int i = 0; i < RefElement<2>::n_sides; i++){
601 for(
unsigned int j = 0; j < RefElement<2>::n_sides; j++)
602 CI12[i].set_pc_triangle(plucker_coordinates_[3+j], j);
604 CI12[i].set_pc_abscissa(plucker_coordinates_[i]);
607 for(
unsigned int j = 0; j < RefElement<2>::n_sides; j++)
613 for(
unsigned int j = 0; j < RefElement<2>::n_sides; j++)
616 CI12[i].set_plucker_product(get_plucker_product(i,j),j);
632 unsigned int ip_coutner = 0;
635 for(
unsigned int i = 0; i < 2*RefElement<2>::n_sides && ip_coutner < 2; i++){
636 if(!CI12[i].is_computed())
639 if(CI12[i].compute_final(IP12s) == 0)
continue;
641 unsigned int triangle_side = i%3;
645 IPAux22 IP22(IP.switch_objects(), triangle_side);
651 if( IP22.
dim_A() == 0 )
658 for(
unsigned int s=0; s < RefElement<2>::n_sides_per_node; s++)
661 if( IP22.
dim_B() == 0 )
665 for(
unsigned int s=0; s < RefElement<2>::n_sides_per_node; s++)
668 else if( IP22.
dim_B() == 1 )
672 CI12[3 + IP22.
idx_B()].set_computed();
675 else if( IP22.
dim_B() == 0 )
683 for(
unsigned int s=0; s < RefElement<2>::n_sides_per_node; s++)
688 IP22s.push_back(IP22);
726 for(
unsigned int i = 0; i < RefElement<2>::n_lines; i++){
727 os <<
"\tPluckerCoordinates Triangle A[" << i <<
"]";
728 if(plucker_coordinates_[i] ==
nullptr){
729 os <<
"NULL" << endl;
731 os << plucker_coordinates_[i];
734 for(
unsigned int i = 0; i < RefElement<2>::n_lines; i++){
735 os <<
"\tPluckerCoordinates Triangle B[" << i <<
"]";
737 os <<
"NULL" << endl;
739 os << plucker_coordinates_[RefElement<2>::n_lines + i];
745 os <<
"ComputeIntersection<2,2> Plucker Coordinates Tree:" << endl;
746 print_plucker_coordinates(os);
747 for(
unsigned int i = 0; i < 6;i++){
748 os <<
"ComputeIntersection<1,2>["<< i <<
"] Plucker Coordinates:" << endl;
749 CI12[i].print_plucker_coordinates(os);
759 plucker_coordinates_abscissa_ =
nullptr;
760 plucker_coordinates_tetrahedron.resize(6,
nullptr);
761 plucker_products_.resize(6,
nullptr);
771 plucker_coordinates_abscissa_ =
new Plucker(abscissa.
node(0), abscissa.
node(1));
772 plucker_coordinates_tetrahedron.resize(6);
773 plucker_products_.resize(6);
775 for(
unsigned int line = 0; line < RefElement<3>::n_lines; line++){
786 for(
unsigned int side = 0; side < RefElement<3>::n_sides; side++)
787 CI12[side].clear_all();
790 if(plucker_coordinates_abscissa_ !=
nullptr)
791 delete plucker_coordinates_abscissa_;
793 for(
unsigned int line = 0; line < RefElement<3>::n_lines; line++){
794 if(plucker_products_[line] !=
nullptr)
795 delete plucker_products_[line];
796 if(plucker_coordinates_tetrahedron[line] !=
nullptr)
797 delete plucker_coordinates_tetrahedron[line];
804 for(
unsigned int side = 0; side < RefElement<3>::n_lines; side++)
806 plucker_products_[side] =
nullptr;
807 plucker_coordinates_tetrahedron[side] =
nullptr;
809 plucker_coordinates_abscissa_ =
nullptr;
814 for(
unsigned int side = 0; side < RefElement<3>::n_sides; side++){
815 for(
unsigned int line = 0; line < RefElement<3>::n_lines_per_side; line++){
816 CI12[side].set_pc_triangle(plucker_coordinates_tetrahedron[
819 CI12[side].set_plucker_product(
823 CI12[side].set_pc_abscissa(plucker_coordinates_abscissa_);
838 for(
unsigned int face = 0; face < RefElement<3>::n_sides && IP13s.size() < 2; face++){
840 if (CI12[face].is_computed())
continue;
848 sign.push_back(CI12[face].check_abscissa_topology(IP12));
850 IPAux IP13(IP12, face);
852 IP13s.push_back(IP13);
855 if(IP13.
dim_B() == 0)
859 CI12[node_face].set_computed();
861 else if(IP13.
dim_B() == 1)
864 CI12[edge_face].set_computed();
868 if (IP13s.size() == 0)
return IP13s.size();
871 if(IP13s.size() == 1){
872 if(std::abs(sign[0]) > 1) IP13s.pop_back();
880 if (sign[0] == sign[1] && std::abs(sign[0]) > 1) {
886 if(IP13s[0].local_bcoords_A()[1] > IP13s[1].local_bcoords_A()[1]){
892 const int ip_sign[] = {-2, +2};
893 for(
unsigned int ip=0; ip<2; ip++) {
895 if (sign[ip] == ip_sign[ip]) {
897 correct_tetrahedron_ip_topology(
double(ip), ip, IP13s);
898 IP13s[ip].set_topology_A(ip, 0);
903 if(IP13s[0].topology_equal(IP13s[1])){
914 ips[0].local_bcoords_B(), ips[1].local_bcoords_B(),
915 ips[0].local_bcoords_A()[1], ips[1].local_bcoords_A()[1], t);
916 arma::vec2 local_abscissa({1 - t, t});
917 ips[ip].set_coordinates(local_abscissa, local_tetra);
922 unsigned int zeros = 0;
923 unsigned int n_zeros = 0;
924 for(
char i=0; i < 4; i++){
927 zeros = zeros | (1 << i);
941 default: ips[ip].set_topology_B(0,3);
954 os <<
"\tPluckerCoordinates Abscissa[0]";
955 if(plucker_coordinates_abscissa_ ==
nullptr){
956 os <<
"NULL" << endl;
958 os << plucker_coordinates_abscissa_;
961 for(
unsigned int i = 0; i < 6;i++){
962 os <<
"\tPluckerCoordinates Tetrahedron[" << i <<
"]";
963 if(plucker_coordinates_tetrahedron[i] ==
nullptr){
964 os <<
"NULL" << endl;
966 os << plucker_coordinates_tetrahedron[i];
972 os <<
"ComputeIntersection<1,3> Plucker Coordinates Tree:" << endl;
973 print_plucker_coordinates(os);
974 for(
unsigned int i = 0; i < 4;i++){
975 os <<
"ComputeIntersection<1,2>["<< i <<
"] Plucker Coordinates:" << endl;
976 CI12[i].print_plucker_coordinates(os);
987 s3_dim_starts({0, 4, 10, 14}),
988 s2_dim_starts({15, 18, 21}),
989 object_next(22, no_idx),
990 on_faces(_on_faces())
993 plucker_coordinates_triangle_.resize(3,
nullptr);
994 plucker_coordinates_tetrahedron.resize(6,
nullptr);
995 plucker_products_.resize(3*6,
nullptr);
1005 plucker_coordinates_triangle_.resize(3);
1006 plucker_coordinates_tetrahedron.resize(6);
1009 for(
unsigned int i = 0; i < RefElement<3>::n_lines; i++){
1014 for(
unsigned int i = 0; i < RefElement<2>::n_lines;i++){
1023 plucker_products_.resize(np,
nullptr);
1024 for(
unsigned int line = 0; line < np; line++){
1033 for(
unsigned int triangle_side = 0; triangle_side < RefElement<2>::n_sides; triangle_side++)
1034 CI13[triangle_side].clear_all();
1036 for(
unsigned int line = 0; line < RefElement<3>::n_lines; line++)
1037 CI12[line].clear_all();
1041 for(
unsigned int line = 0; line < np; line++){
1042 if(plucker_products_[line] !=
nullptr)
1043 delete plucker_products_[line];
1046 for(
unsigned int i = 0; i < RefElement<3>::n_lines;i++){
1047 if(plucker_coordinates_tetrahedron[i] !=
nullptr)
1048 delete plucker_coordinates_tetrahedron[i];
1050 for(
unsigned int i = 0; i < RefElement<2>::n_sides;i++){
1051 if(plucker_coordinates_triangle_[i] !=
nullptr)
1052 delete plucker_coordinates_triangle_[i];
1061 for(
unsigned int triangle_side = 0; triangle_side < RefElement<2>::n_sides; triangle_side++){
1062 for(
unsigned int line = 0; line < RefElement<3>::n_lines; line++){
1063 CI13[triangle_side].set_plucker_product(
1066 CI12[line].set_plucker_product(
1070 CI13[triangle_side].set_pc_tetrahedron(plucker_coordinates_tetrahedron[line],line);
1071 CI12[line].set_pc_triangle(plucker_coordinates_triangle_[triangle_side],triangle_side);
1073 CI13[triangle_side].set_pc_abscissa(plucker_coordinates_triangle_[triangle_side]);
1074 CI13[triangle_side].init();
1078 for(
unsigned int line = 0; line < RefElement<3>::n_lines; line++)
1079 CI12[line].set_pc_abscissa(plucker_coordinates_tetrahedron[line]);
1087 unsigned int ip = object_next[i_obj];
1088 if (ip == no_idx)
return false;
1090 return IP_next[ip] == i_obj;
1098 if (have_backlink(obj_after_ip)) {
1104 (mesh_->element_accessor(intersection_->component_ele_idx()).idx())
1105 (mesh_->element_accessor(intersection_->bulk_ele_idx()).idx())
1106 (obj_before_ip)(ip_idx)(obj_after_ip);
1107 object_next[obj_before_ip] = ip_idx;
1108 IP_next.push_back( obj_after_ip);
1109 if (object_next[obj_after_ip] == no_idx) {
1110 object_next[obj_after_ip] = ip_idx;
1118 intersection_= &intersection;
1125 std::fill(object_next.begin(), object_next.end(), no_idx);
1128 std::array<bool, 6> edge_touch={
false,
false,
false,
false,
false,
false};
1129 unsigned int object_before_ip, object_after_ip;
1142 for(
unsigned int _i_side = 0; _i_side < RefElement<2>::n_lines; _i_side++) {
1143 unsigned int i_side = cycle_sides[_i_side];
1145 CI13[ i_side ].compute(IP13s);
1147 if (IP13s.size() == 0)
continue;
1148 for(
unsigned int _ip=0; _ip < IP13s.size(); _ip++) {
1152 unsigned int ip = (side_cycle_orientation[_i_side] + _ip) % IP13s.size();
1163 unsigned int tetra_object = s3_dim_starts[IP23.
dim_B()] + IP23.
idx_B();
1164 unsigned int side_object = s2_dim_starts[1] + i_side;
1166 object_before_ip = tetra_object;
1167 object_after_ip = side_object;
1175 object_before_ip = s2_dim_starts[0]+IP23.
idx_A();
1179 if (IP13s.size() == 1 ) {
1180 if (IP23.
dim_B() == 0) {
1183 if (IP23.
dim_A() == 0) {
1184 object_before_ip = tetra_object;
1185 object_after_ip = s2_dim_starts[0]+IP23.
idx_A();
1195 edge_touch[IP23.
idx_B()]=
true;
1196 std::swap(object_before_ip, object_after_ip);
1200 IP23_list.push_back(IP23);
1202 unsigned int ip_idx = IP23_list.size()-1;
1205 set_links(object_before_ip, ip_idx, object_after_ip);
1225 for(
unsigned int tetra_edge = 0; tetra_edge < 6; tetra_edge++) {
1230 IP12s_.push_back(IP12);
1234 for(
unsigned int tetra_edge = 0; tetra_edge < 6;tetra_edge++) {
1235 if (! processed_edge[tetra_edge]) {
1237 IPAux12 &IP12 = IP12s_[tetra_edge];
1240 int sign = CI12[tetra_edge].check_abscissa_topology(IP12);
1242 if(std::abs(sign) > 1)
continue;
1244 IPAux23 IP23(IP12s_[tetra_edge].switch_objects(), tetra_edge);
1250 if ( edge_dim == 0) {
1251 face_pair = vertex_faces(i_edge);
1254 processed_edge[ie] = 1;
1257 face_pair = edge_faces(i_edge);
1261 IP23_list.push_back(IP23);
1262 unsigned int ip_idx = IP23_list.size()-1;
1264 unsigned int s3_object = s3_dim_starts[edge_dim] + i_edge;
1267 if (IP23.
dim_A() < 2
1268 && (! edge_touch[i_edge])
1269 && object_next[s3_object] != no_idx) {
1271 if ( have_backlink(s3_object) ) {
1272 set_links(s3_object, ip_idx, face_pair[1]);
1274 set_links(face_pair[0], ip_idx, s3_object);
1279 set_links(face_pair[0], ip_idx, face_pair[1]);
1281 if ( have_backlink(s3_object) ) {
1282 object_next[s3_object]=ip_idx;
1292 if (IP23_list.size() == 0)
return;
1298 for(
auto obj : IP_next) {
1300 unsigned int ip = object_next[obj];
1301 if (ip < IP_next.size()) have_predecessor[ip]=1;
1303 unsigned int ip_init=0;
1304 for(
unsigned int i=0; i< IP23_list.size(); i++)
if (! have_predecessor[i]) ip_init=i;
1306 arma::uvec::fixed<RefElement<3>::n_sides> ips_face_counter;
1307 ips_face_counter.zeros();
1310 unsigned int ip=ip_init;
1312 intersection.
points().push_back(IP23_list[ip]);
1317 unsigned int object = IP_next[ip];
1320 ip = object_next[object];
1321 object_next[object]=no_idx;
1322 if ((ip == no_idx))
break;
1325 if ( ! IP23_list[ip].topology_equal(intersection.
points().back()) ) {
1328 intersection.
points().push_back(IP);
1330 ips_face_counter += on_faces[IP.
dim_B()][IP.
idx_B()];
1334 if (intersection.
points().size() == 1)
return;
1336 if (IP23_list[ip_init].topology_equal(intersection.
points().back()) )
1337 intersection.
points().pop_back();
1339 if (intersection.
points().size() > 2){
1340 for(
uint i=0; i< ips_face_counter.n_elem; i++){
1341 if(ips_face_counter(i) >= intersection.
points().size()){
1353 unsigned int ip_ori = (
unsigned int)(IP12s_[i_edge].result());
1359 return { s3_dim_starts[2] + line_faces[1-ip_ori], s3_dim_starts[2] + line_faces[ip_ori] };
1366 std::array<unsigned int, 3> n_ori, sum_idx;
1369 for(
unsigned int ie=0; ie <3; ie++) {
1370 unsigned int edge_ip_ori = (
unsigned int)(IP12s_[ vtx_edges[ie]].result());
1373 edge_ip_ori = (edge_ip_ori +1)%2;
1375 if (edge_ip_ori == 3) edge_ip_ori=2;
1376 n_ori[edge_ip_ori]++;
1377 sum_idx[edge_ip_ori]+=ie;
1384 if ( n_degen == 2 ) {
1388 unsigned int i_edge = 3 - sum_degen;
1389 FacePair pair = edge_faces(vtx_edges[i_edge]);
1392 if (pair[0] == s3_dim_starts[2] + vtx_faces[(i_edge+1)%3])
1393 return { s3_dim_starts[1] + (i_edge+2)%3, s3_dim_starts[1] + (i_edge+1)%3 };
1395 return { s3_dim_starts[1] + (i_edge+1)%3, s3_dim_starts[1] + (i_edge+2)%3 };
1397 }
else if (n_degen == 1) {
1399 unsigned int i_edge = sum_degen;
1400 ASSERT( n_positive + n_negative == 2);
1401 if ( n_positive == 1) {
1404 FacePair pair = edge_faces(vtx_edges[(i_edge+1)%3]);
1408 if (pair[0] == s3_dim_starts[2] + face)
1409 return { s3_dim_starts[2] + face, s3_dim_starts[1] + vtx_edges[i_edge]};
1411 return { s3_dim_starts[1] + vtx_edges[i_edge], s3_dim_starts[2] + face };
1416 ASSERT(n_positive == 0 || n_positive== 2);
1417 return { s3_dim_starts[0]+i_vertex, s3_dim_starts[1] + vtx_edges[i_edge]};
1423 ASSERT( n_positive + n_negative == 3);
1425 if (n_positive == 1) {
1427 return edge_faces(vtx_edges[i_edge]);
1428 }
else if (n_negative == 1) {
1430 return edge_faces(vtx_edges[i_edge]);
1433 ASSERT( n_positive == 0 || n_positive == 3);
1434 return { s3_dim_starts[0]+i_vertex, s3_dim_starts[0]+i_vertex};
1445 arma::uvec::fixed<RefElement<3>::n_sides> v; v.zeros();
1448 for(
uint i=0; i<RefElement<3>::n_nodes; i++)
1449 for(
uint j=0; j<RefElement<3>::n_sides_per_node; j++)
1453 for(
uint i=0; i<RefElement<3>::n_lines; i++)
1454 for(
uint j=0; j<RefElement<3>::n_sides_per_line; j++)
1458 for(
uint i=0; i<RefElement<3>::n_sides; i++)
1459 on_faces[2][i](i) = 1;
1473 for(
unsigned int i = 0; i < 3;i++){
1474 os <<
"\tPluckerCoordinates Triangle[" << i <<
"]";
1475 if(plucker_coordinates_triangle_[i] ==
nullptr){
1476 os <<
"NULL" << endl;
1478 os << plucker_coordinates_triangle_[i];
1481 for(
unsigned int i = 0; i < 6;i++){
1482 os <<
"\tPluckerCoordinates Tetrahedron[" << i <<
"]";
1483 if(plucker_coordinates_tetrahedron[i] ==
nullptr){
1484 os <<
"NULL" << endl;
1486 os << plucker_coordinates_tetrahedron[i];
1492 os <<
"ComputeIntersection<2,3> Plucker Coordinates Tree:" << endl;
1493 print_plucker_coordinates(os);
1494 for(
unsigned int i = 0; i < 6;i++){
1495 os <<
"ComputeIntersection<1,2>["<< i <<
"] Plucker Coordinates:" << endl;
1496 CI12[i].print_plucker_coordinates(os);
1498 for(
unsigned int i = 0; i < 3;i++){
1499 CI13[i].print_plucker_coordinates_tree(os);