public static FDVertex FromLine(FVector3 begin, FVector3 end, Color color) { FDVertex fv = new FDVertex(); fv.Position = new Vector3[2]; fv.Position[0] = FSHelper.FVector3ToVector3(begin); fv.Position[1] = FSHelper.FVector3ToVector3(end); fv.Color = color; return(fv); }
public static FDVertex FromTriangleList(FVector3 p0, FVector3 p1, FVector3 p2, Color color) { FDVertex fv = new FDVertex(); fv.Position = new Vector3[3]; fv.Position[0] = FSHelper.FVector3ToVector3(p0); fv.Position[1] = FSHelper.FVector3ToVector3(p1); fv.Position[2] = FSHelper.FVector3ToVector3(p2); fv.Color = color; return(fv); }