A method comprising: adding at least one 3D sample to a point cloud frame encoded in a bitstream, wherein adding the at least one 3D sample is based on a depth value of a current 3D sample of the point cloud frame projected onto a geometry image plane and a depth value of at least one neighboring 3D sample projected onto the geometry image plane and neighboring the current 3D sample on the geometry image plane, wherein the at least one 3D sample is added according to a first depth difference determined as a maximum depth difference between depth values of neighboring 3D samples of the current 3D sample and the depth value of the current 3D sample, and wherein at least one 3D sample is added with a depth value belonging to a range from the depth value of the current 3D sample of the point cloud frame and a depth value being equal to the sum of the depth value of the current 3D sample and the first depth difference minus 1, the added at least one 3D sample being added at a same 2D location as a 2D sample representing a projection of the current 3D sample of the point cloud frame onto the geometry image plane, up to the first depth difference, assigning a color-coding mode to the at least one added 3D sample, the color-coding mode indicating whether color information associated with the at least one added 3D sample is encoded in the bitstream or the color information is implicit, encoding in the bitstream the color information associated with the at least one added 3D sample if the color-coding mode assigned to the at least one added 3D sample indicates that color information associated with the at least one added 3D sample is encoded in the bitstream. adding at least one 3D sample to a point cloud frame encoded in a bitstream, wherein adding the at least one 3D sample is based on a depth value of a current 3D sample of the point cloud frame projected onto a geometry image plane and a depth value of at least one neighboring 3D sample projected onto the geometry image plane and neighboring the current 3D sample on the geometry image plane, wherein the at least one 3D sample is added according to a first depth difference determined as a maximum depth difference between depth values of neighboring 3D samples of the current 3D sample and the depth value of the current 3D sample, and wherein at least one 3D sample is added with a depth value belonging to a range from the depth value of the current 3D sample of the point cloud frame and a depth value being equal to the sum of the depth value of the current 3D sample and the first depth difference minus 1, the added at least one 3D sample being added at a same 2D location as a 2D sample representing a projection of the current 3D sample of the point cloud frame onto the geometry image plane, up to the first depth difference, assigning a color-coding mode to the at least one added 3D sample, the color-coding mode indicating whether color information associated with the at least one added 3D sample is encoded in the bitstream or the color information is implicit, encoding in the bitstream the color information associated with the at least one added 3D sample if the color-coding mode assigned to the at least one added 3D sample indicates that color information associated with the at least one added 3D sample is encoded in the bitstream.