Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Imagine we import a PDB file like so (using the example from ref/format/PDB in the help directory):

Import["", "PDB", ImageSize -> Medium]

The help file says that it should be possible to treat the imported PDB image as a Graphics3D object, but I can't seem to get it to display with other Graphics3D objects after using Import with the specification:

Import["my_duplex.pdb", "Graphics3D"]

How would I scale and translate an imported PDB graphic and get it to display with other Graphics3D objects, like say a cylinder or sphere?

share|improve this question

1 Answer 1

Use Axes -> True to get an idea of the scale:

i = Import["ExampleData/100d.pdb", "Graphics3D"]
Show[i, Graphics3D[{Red, Sphere[{0, 0, 0}, 400]}], Axes -> True]

Mathematica graphics

share|improve this answer
Great great... can I dilate the PDB output to shrink it down? – RVoight Nov 4 '13 at 10:14
@RVoight Try for example s = {0, 1}; k = 1/100; Show[i /. GraphicsComplex[a_, b__] :> GraphicsComplex[a k, b] /. Sphere[a_, b_] :> Sphere[a, b k] /. Cylinder[a_, b_] :> Cylinder[a, b k], Axes -> True] – belisarius has settled Nov 4 '13 at 10:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.