Skip to content

Commit 964893c

Browse files
Amitav Baruahfacebook-github-bot
Amitav Baruah
authored andcommitted
Refactor plot_meshes and plot_pointclouds to one generalizable API, plot_scene
Summary: Defines a function plot_scene that takes in a dictionary defining subplot and trace layouts for Mesh/Pointcloud objects and plots them. Also supports other plotly axis arguments and mesh lighting. Plot_batch_individually is a wrapper function that takes in one or multiple batched Meshes/Pointclouds and uses plot_scene to plot each element within a batch in an individual subplot, possibly sharing that subplot with traces of other individual elements of the other batched structures passed in. Reviewed By: nikhilaravi Differential Revision: D24235479 fbshipit-source-id: 9f669f1b186d55fe5c75552083316c0cf1387472
1 parent abd3903 commit 964893c

File tree

2 files changed

+304
-195
lines changed

2 files changed

+304
-195
lines changed

pytorch3d/vis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
22

3-
from .plotly_vis import AxisArgs, Lighting, plot_meshes, plot_pointclouds
3+
from .plotly_vis import AxisArgs, Lighting, plot_scene
44

55

66
__all__ = [k for k in globals().keys() if not k.startswith("_")]

0 commit comments

Comments
 (0)