Skip to content

Plotting a plane given either two vectors or normal #184

Answered by AlexanderFabisch
ekmungi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ekmungi

I would like to extend my appreciation for the work from the developers in this library. Thank you!

Thanks!

Is there already a function that can plot a plane given either two vectors or a normal in pytransform3d?

It's not in this library, but I have a function for Open3D's visualizer in an internal library (see below). If you need something for matplotlib, it should be easy to rewrite. In order to integrate this function in pytransform3d, we would need a corresponding Plane class, which is a subclass of the Artist base class.

import numpy as np
import open3d as o3d
import pytransform3d.rotations as pr


def plot_plane(figure, normal, d=None, point_in_plane=None, scale=1.0,…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexanderFabisch
Comment options

Answer selected by AlexanderFabisch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #183 on March 08, 2022 08:02.