# Using implicit_plot3d to create a plane between three points

Hello all. I'm an undergrad at the beginning phases of an applied crystallography/group theory research project and have been using Sage to make some simple visualization/symmetry analysis scripts. What I'm currently trying to do is create a plane for each face of certain high symmetry groups. Here's an example:

How would I create a plane to represent each face of the tetrahedron? In the code below S through S represent the different coordinates in space that make up the substituent molecules/vertices.

def tetra(XY4,q):

A = { 0: (0,0,0) }

S = {3 : (2**(1/2), 1, 0), 2 : (-2**(1/2), 1, 0), 1: (0, -1, 2**(1/2)), 4: (0, -1, -2**(1/2))}

C2R = { 1 : (0,2.5,0), 2: (0,-2.5,0) }

C3R = { 1 : (0, -2*.75, 2*2**(1/2)*.75), 2 : (0, 2*.75, -2*2**(1/2)*.75) }

C2R_pair = { 1 : [ C2R,C2R ] }

C3R_pair = { 2 : [ C3R,C3R ] }

Axis_label = { (0, (-2*.75)-0.10, (2*2**(1/2)*.75)+0.10): 'C3', (0,2.75,0): 'C2' }

Substituents = { S: 'H', S: 'H', S: 'H', S: 'H' }

Additions = { S: 'H', S: 'H', S: 'H', S: 'H' }

Central_Atom = { A : 'N' }

Sub_Bonds = { 'A0-S1' : [A,S], 'A0-S2' : [A,S], 'A0-S3' : [A,S], 'A0-S4': [A,S] }

Sym_outline = {'S2-S3': [S,S], 'S3-S4' : [S,S], 'S2-S4': [S,S], 'S1-S2': [S,S], 'S1-S3': [S,S], 'S1-S4': [S,S]}

Sym_Scale = { 'yz' : [(-1.5,1.5),(-2**(1/2),2**(1/2)),(-2**(1/2),2**(1/2))], 'xy': [(-1.5,1.5),(-2,2),(-2,2)] }


So if I want to create a plane between:

S = (0, -1, 2**(1/2), S = (-2**(1/2), 1, 0), S = (2**(1/2), 1, 0)


Would I use implicit_plot3d? I tried to use list_plot3d but it did not cover the entire face.

edit retag close merge delete

sage: polygon3d??