//+
SetFactory("OpenCASCADE");
//+
Wedge(1) = {0.5, -0.9, -0.5, 0.5, 0.5, 0.5, 0};

c0[] = Point{1}; // c0 contains the coords in indexes 0,1,2
c1[] = Point{3}; 
p=newp; // newp is command to generate a new point number - we store it in p
Point(p)={c0[0], (c1[1]+c0[1])/2+0.1,c0[2], 0.1};

// Try 1 
// Point{p} In Surface{1};
// Point{p} In Surface{5};

// Try 2
// Point{p} In Volume{1};

// Try 3 
// BooleanFragments{ Line{2}; Delete; }{ Point{p}; Delete; }

