how to use d3d function cals in ue4 if possible.

I want to use D3D functions to draw any shapes like any equation i want to plot. like the figures below done in directx. i want to use AR that i need to develop the project in ue4. Anyone having any idea how to do this? i posted this question at with pictures.

UE4 is built to be platform agnostic, you shouldn’t ever be calling D3D functions directly.

Drawing geometric primitives should be reasonably trivial to do, there are a number of ways you can generate and modify geometry at run time (procedural mesh components, shaders etc).