def crossMaterialForm(self,other): """Return the material point of intersection between two material forms.""" f1=self.getForm() f2=other.getForm() points=f1.crossForm(f2) points=[MaterialPoint.createFromPoint(point) for point in points] return points
def createFromForm(form,forces=[]): """Create a material form using a Form instance.""" material_points=[MaterialPoint.createFromPoint(point,forces) for point in form.getPoints()] return MaterialForm(material_points)