- plane->SetOrigin( p0 );
- plane->SetPoint1( p1 );
- plane->SetPoint2( p2 );
-// plane->Update( );
- plane->SetNormal( bbGetInputNormal()[0], bbGetInputNormal()[1], bbGetInputNormal()[2] );
-// plane->Update( );
- plane->SetCenter( c );
+ if (byNormal==false)
+ {
+ plane->SetOrigin( p0 );
+ plane->SetPoint1( p1 );
+ plane->SetPoint2( p2 );
+ } else {
+ plane->SetNormal( bbGetInputNormal()[0], bbGetInputNormal()[1], bbGetInputNormal()[2] );
+ printf("EED PlaneSource. Missing mechanism to define the size of the plane\n");
+ }
+ plane->SetCenter( c );
+