Skip to content

rapid_drawWireframe

rapidfunctionOpenCV 5.0.0
import { rapid_drawWireframe } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSimg, pts2d, tris, color
FUNCTIONrapid_drawWireframe
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Draw a wireframe of a triangle mesh

rapid_drawWireframe(img: Mat, pts2d: Mat, tris: Mat, color: Scalar, type_: number, cullBackface: boolean): void;
3 available overloads
rapid_drawWireframe(img: Mat, pts2d: Mat, tris: Mat, color: Scalar): void;
rapid_drawWireframe(img: Mat, pts2d: Mat, tris: Mat, color: Scalar, type_: number): void;
rapid_drawWireframe(img: Mat, pts2d: Mat, tris: Mat, color: Scalar, type_: number, cullBackface: boolean): void;
img

Input/output value, modified by the native operation. the output image

pts2d

the 2d points obtained by projectPoints

tris

triangle face connectivity

color

line color

type_

line type. See LineTypes.

cullBackface

enable back-face culling based on CCW order

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.