from __future__ import absolute_import, division, print_function from cctbx.sgtbx.direct_space_asu.cut_plane import cut from boost import rational r1 = rational.int(1) x1 = cut((-1,0,0), 1) x0 = -x1*0 x2 = x1/2 x3 = x1/3 x4 = x1/4 x8 = x1/8 x34 = x1*3/4 y1 = cut((0,-1,0), 1) y0 = -y1*0 y2 = y1/2 y3 = y1/3 y4 = y1/4 y8 = y1/8 z1 = cut((0,0,-1), 1) z0 = -z1*0 z2 = z1/2 z3 = z1/3 z4 = z1/4 z6 = z1/6 z8 = z1/8 z12 = z1/12 p1 = cut((-1,1,0), 1) p0 = -p1*0 p2 = p1/2 p3 = p1/3
def add_plane(self, normal_direction, point=None): if (point is None): point = self.box_min() self.cuts.append(cut_plane.cut( n=normal_direction, c=-(matrix.col(normal_direction).dot(matrix.col(point)))))
from __future__ import division from cctbx.sgtbx.direct_space_asu.cut_plane import cut from boost import rational r1 = rational.int(1) x1 = cut((-1,0,0), 1) x0 = -x1*0 x2 = x1/2 x3 = x1/3 x4 = x1/4 x8 = x1/8 x34 = x1*3/4 y1 = cut((0,-1,0), 1) y0 = -y1*0 y2 = y1/2 y3 = y1/3 y4 = y1/4 y8 = y1/8 z1 = cut((0,0,-1), 1) z0 = -z1*0 z2 = z1/2 z3 = z1/3 z4 = z1/4 z6 = z1/6 z8 = z1/8 z12 = z1/12 p1 = cut((-1,1,0), 1) p0 = -p1*0 p2 = p1/2 p3 = p1/3